Rewrite Rule

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

 



Hi,

I have below similar rewrite rule in my conf -
---------------
RewriteCond %{HTTP_HOST} ^abc.xyz.com|^abc$
RewriteCond %{REQUEST_URI} !^/abc/.*
RewriteRule ^(.*)$ http://xyz.com/test/ [E=HTTP_REFERER:%{HTTP_REFERER},L]
---------------

If i hit, abc.xyz.com or abc - it redirects as per rule to http://xyz.com/test/
Also, If i hit /abc/dummy - it still redirects to http://xyz.com/test/ , even though 2nd line of rule starts with !(not).

can someone help me understand the rule?

Tnx,
Mukesh

[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