httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feris Thia" <feris.apache.ht...@gmail.com>
Subject Re: [users@httpd] URLRewrite Question
Date Fri, 02 Feb 2007 14:41:13 GMT
Hi Olivier,

This still doesn't work as what I want it too. It makes every access to html
and php forbidden.

Regards,

Feris

On 2/2/07, Chirouze Olivier <olivier.chirouze@volvo.com> wrote:
>
> Hi,
>
> I guess you should add [L] ("last") to your first rule, and make sure
> the second one is AFTER. Thus, the first rule will work for *.html, and
> exit. When calling *.php, it will go to the second one...
>
> RewriteEngine on
> RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php [L]
> RewriteCond %{REQUEST_URI}  "\.(php)$"
> RewriteRule .* - [F]
>
> Olivier
>
>
> Olivier CHIROUZE
> I&0 Infrastructure
> Volvo Information Technology
>
>
>

Mime
View raw message