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

[users@httpd] Re: Comparing values in RewriteCond directive

Hi everyone, able to resolve above issue with below rules:

RewriteCond %{REQUEST_URI} ^*).(?!\1$)

RewriteRule ^.*$ - [R=404,L]

With Regards,


On Fri, Oct 12, 2018 at 8:39 AM alchemist vk <alchemist.vk@xxxxxxxxx> wrote:
Hi All,
   I have one test uri ''.   How I can fetch uri components test1 and test2 and compare them via RewriteCond directive?..

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

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

With Regards,