| Posted: 18 September 2011 at 7:08am | IP Logged
|
|
|
Hello,
We need to make large amount sub domain URL redirect like this:
RewriteCond %{HTTP:Host} ^www\.mydomain\.com$ RewriteRule ^city1/community1.aspx$ http://city1.mydomain.com/ [NC,L,R=301]
RewriteCond %{HTTP:Host} ^www\.mydomain\.com$ RewriteRule ^city2/community2.aspx$ http://city2.mydomain.com/ [NC,L,R=301]
We found for each RewriteRule, there has to be a RewriteCond ahead of it. Considering the large number of redirect, is there more efficient way to implement these?
Also, currently there are already a few hundreds of flat RewriteRules, and using of mapfile of hundreds of pairs of query strings. what's the best way to manage them, such as prevent unexpected redirect from happening?
Thank you in advance for your advice!
John
|