Re: URLRewrite Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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@xxxxxxxxx> 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
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]