Hi Team, Need help in one scenario with Apache 2.4.8 rewrite. Trying to put If/Else condition based on "REQUEST_URI" in one of custom vhost file, but none of the files is getting included. Code in Vhost.
<IfModule mod_rewrite.c>
ReWriteEngine on
LogLevel warn rewrite:info
# Global rewrite include
Include conf.d/rewrites/base_rewrite.rules
<If "%{REQUEST_URI} =~ m#^/content/abc#">
Include conf.d/rewrites/abc_rewrite.rules
</If>
<ElseIf "%{REQUEST_URI} =~ m#^/content/xyz#">
Include conf.d/rewrites/xyz_rewrite.rules
</ElseIf>
</IfModule>
Logs :
init rewrite engine with requested uri /content/abc/in/en/home/test.html
pass through /content/abc/in/en/home/test.html
[perdir *If/] add path info postfix: /mnt/var/www/html/content -> /mnt/var/www/html/content/abc/in/en/home/test.html
[perdir *If/] applying pattern '(.*)' to uri '/mnt/var/www/html/content/abc/in/en/home/test.html'
[perdir *If/] pass through /mnt/var/www/html/content