URLRewrite Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hi Everyone,
I configured my .htaccess to map/redirect all my *.html page to *.php pages like below
================================
RewriteEngine on
RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php
================================
It works. But now, I want the client cannot access the php script directly. So I write the rule like these
================================
RewriteCond %{REQUEST_URI} "\.(php)$"
RewriteRule .* - [F]
================================
But now it forbid every *.html that maps to my *.php pages... What is wrong ? How can I achieve my goal ?
Regards,
Feris
[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]