httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alchemist vk <alchemist...@gmail.com>
Subject [users@httpd] Comparing values in RewriteCond directive
Date Fri, 12 Oct 2018 03:09:48 GMT
Hi All,
   I have one test uri 'http://example.com/test1.test2'.   How I can fetch
uri components test1 and test2 and compare them via RewriteCond directive?..

I tried like below:
   RewriteCond {REQUEST_URI} http://example.com/(.*)\.(.*)
   RewriteCond $1!=$2

But getting syntax error saying $1!=$2 is not proper syntax..

With Regards,
Venkatesh

Mime
View raw message