RewriteRule help - urgent

New to mod_rewrite? This is a good place to start.

RewriteRule help - urgent

Postby kabbin » Mon Nov 23, 2009 4:21 pm

Hi -
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
kabbin
 
Posts: 11
Joined: Mon Jan 05, 2009 6:03 pm

Postby kabbin » Tue Nov 24, 2009 2:53 pm

Ignore this thread. This issue is resolved.
kabbin
 
Posts: 11
Joined: Mon Jan 05, 2009 6:03 pm


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 9 guests

cron