httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob <bobsie...@googlemail.com>
Subject Re: [users@httpd] URLRewrite Question
Date Fri, 02 Feb 2007 21:51:12 GMT
Feris Thia wrote:
> I have added the [L] but it seems not stopping.

It does. But there is an internal redirect in directory context.

Put

RewriteEngine on
RewriteRule ^/([0-9a-zA-Z]+)\.html$ /$1.php [PT]
RewriteRule \.php$ - [F]

into your httpd.conf/ per-server context (main server config section or 
inside your client's <virtualhost>-section).

-- 
Bob

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message