I thought I'd throw this out in case anyone was able to help, but I'm not going to hold my breath.
We have a site that we're migrating to a new URL. The problem is this is a pretty frequently bookmarked and visited site and we want to make the transition as seamless as possible. I'm pretty sure the correct RewriteRules will do it but I'm stumped
Okay, so let me explain: on the current site, we want to redirect all content under the category category1 to the new site. (See the first RewriteCond) The category is passed via the URL, and there are several categories, but only one is moving.
I need to capture the pageid of the page requested to pass to the new site. (See the second RewriteCond) Again, the pageid is passed via the URL, and we have been careful to synchronize the pageids between the two sites.
The RewriteRule I hope is fairly self explanatory. I want to redirect all requests meeting the two conditions to the new url with the proper id.
Is there any chance that there is anyone here that can tell me why this is not even close to working?
We have a site that we're migrating to a new URL. The problem is this is a pretty frequently bookmarked and visited site and we want to make the transition as seamless as possible. I'm pretty sure the correct RewriteRules will do it but I'm stumped
Code:
RewriteCond %{QUERY_STRING} ^dir=category1$
RewriteCond %{QUERY_STRING} ^pageid=([1-9]|[1-9][0-9]|[1-9][0-9][0-9])$
RewriteRule ^(.*) http://newsite.com/display.php?id=%2 [R=301,L]
I need to capture the pageid of the page requested to pass to the new site. (See the second RewriteCond) Again, the pageid is passed via the URL, and we have been careful to synchronize the pageids between the two sites.
The RewriteRule I hope is fairly self explanatory. I want to redirect all requests meeting the two conditions to the new url with the proper id.
Is there any chance that there is anyone here that can tell me why this is not even close to working?