REQUEST_URI multiple wildcard pattern

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

 



Hi,

I have a request that the site contains specific URI pattern should go to another URL while the other URI patterns goes to 404 page of external site.

Here below the rule I have written, however this is not working for wildcard match of the URI pattern.

RewriteCond %{REQUEST_URI} !^/(files(.*)|admin(.*)|user(.*)|product(.*)|go(.*))$
RewriteRule .* http://www.abc.com/page-not-found [R=301,NC,L]


Please advice.

Arun J


[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