Re: URLRewrite Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/3/07, Bob <bobsiegen@xxxxxxxxxxxxxx> wrote:
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


Hi Bob,

It's working. Thanks.

Another question, the rule will not work in shared host, right ?
 
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]

  Powered by Linux