Hello Folks....
How you doing all ...
Need your assistance with an Regex with apache rewriterule.
This is what am doing...
1. Using Apache webserver as proxy server for multiple tomcats
2. Using IP filter with in apache using RewriteCondition and RewriteRule
3. Trying to specify in RewriteRule using a regex to look for a specific pattern "ZVZZT" and then if matches redirect to a page.
RewriteCond %{REMOTE_ADDR} !=192.168.10.2
RewriteCond %{REMOTE_ADDR} !=192.168.10.5
RewriteRule /app1/([A-Z_a-z\.?&=]*)(ZVZZT) /var/www/htdocs/index.html [R=301]
It works fine if a new request comes in as /app1/ZVZZT [ it does redirect to index.html as permanant .. no back button works in browser]. However if the request comes in from already bookmarked link such as
/app1/loginAction.html?method=validateTickerAndRedirect&companyTicker=ZVZZT
In this case my regex doesnt work. Kindly assist.
Highly appreciated!
-Lynx4DBA