FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mod_rewrite rule question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: mod_rewrite rule question [message #173318 is a reply to message #173316] Sun, 03 April 2011 11:07 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 03-04-2011 12:12, Corvet wrote:
>
> "Michael Fesser" <netizen(at)gmx(dot)de> wrote in message
> news:p1ofp69bhpom8td4kvlt1carubjaglndl3(at)mfesser(dot)de...
>> .oO(Corvet)
>>
>>> I need set a mod_rewrite rule to map incoming .html and .htm requests to
> the
>>> (new) real .php extensions.
>>> The following example I find is for .html page: how to adjust rule for
> both
>>> .html and .htm pages?
>>>
>>> Options +FollowSymlinks
>>> RewriteEngine on
>>> RewriteRule ^(.*)\.html$ $1.php [NC]
>>
>> RewriteRule ^(.*)\.html?$ $1.php [NC]
>> ^
>> Micha
> ------
>
> thanks for input. I just find also, another method would be:
>
> RewriteRule ^(.*)\.(.htm|.html)$ $1.php [NC]
>

you do mean:
RewriteRule ^(.*)\.(htm|html)$ $1.php [NC]

;)

--
Luuk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Posting and redirecting to remote script
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 04:48:08 GMT 2024

Total time taken to generate the page: 0.04911 seconds