We are in the process of moving our applications to a new data center and the RewriteRule in place does not work in the pre-production environment. Would appreciate any help in this regard.
Current Setup:
- Code: Select all
RewriteRule ^(license/getMSLic\.jsp) http://lic.lic-domain.com/postLic.htm [R=301,L]
RewriteCond %{QUERY_STRING} ^(.*&)?mcid=[0-9]+(&.*)?$ [NC]
RewriteCond %{QUERY_STRING} ^(.*&)?mlid=[0-9]+(&.*)?$ [NC]
RewriteRule ^(generic\.rd)$ http://lic.lic-domain.com/redirect.htm [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule !^((store/web/updates|logo\.png)(/.*)?)?$ http://www.newdomain.com [R=301,L]
The above setup works fine and is functional at the moment.
The new setup:
- Code: Select all
RewriteRule ^/monitor.html$ - [L]
RewriteRule ^(license/getMSLic\.jsp) http://lic.lic-domain.com/postLic.htm [R=301,L]
RewriteCond %{QUERY_STRING} ^(.*&)?mcid=[0-9]+(&.*)?$ [NC]
RewriteCond %{QUERY_STRING} ^(.*&)?mlid=[0-9]+(&.*)?$ [NC]
RewriteRule ^(generic\.rd)$ http://lic.lic-domain.com/redirect.htm [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule !^((store/web/updates|logo\.png)(/.*)?)?$ http://www.newdomain.com [R=301,L]
In the above setup, you'll see the monitor page available. And thats the only static file that I can access, but none of the other static files listed at the end are accessible (i.e. any file under store/web/updates|logo\.png). All the other rules however also work.
This is urgent.
Thanks,
Sujit