| Posted: 31 January 2012 at 9:05am | IP Logged
|
|
|
Hi, i wonder if someone could help me resolve this conflict.
Each redirect works fine on their own but if i include the two they both stop working.
#301 redirect to a new-URL RewriteCond %{QUERY_STRING} ^profileid=([^&]+)&gallery=([^&]+)$ RewriteRule ^folder/info\.asp$ %1_%2? [NC,R=301,L]
#rewrite back to old-URL RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^_]+)_([^_]+)$ folder/info.asp?profileid=$1&gallery=$2 [NC,L]
#301 redirect to a new-URL
RewriteCond %{QUERY_STRING} ^city=([^&]+)&country=([^&]+)$
RewriteRule ^folder/groups\.asp$ %1_%2? [NC,R=301,L]
#rewrite back to old-URL
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^_]+)_([^_]+)$ folder/groups.asp?city=$1&country=$2 [NC,L]
Thanks for any advice.
richard
Edited by richr45 - 31 January 2012 at 9:06am
|