httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mukesh Kumar <mukesh....@hotmail.com>
Subject [users@httpd] Rewrite Rule
Date Fri, 02 Aug 2013 10:32:41 GMT
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



 		 	   		  
Mime
View raw message