Base url redirects with a p= querystring
-
Hi guys
This is driving me somewhat mad, setting a site live and I am adding in all the 301 redirects but hit on a problem.
The old site uses this structure:
http://thedomain.com/?Section=page&p=/areasofexpertise/
etc…The issue is nothing I do can stop this from loading the page as index.php as if it were the blog homepage.
I have tried:
redirection plugin – no joy so disabled.
.htaccess:Redirect 301 /?Section=page&p=/areasofexpertise/ http://www.thedomain.com/whatever RewriteEngine On ...Also tried intercepting it as a rewrite rule but i 500’d it as i think i got the regular expression syntax wrong so simply tried a normal rewrite and that does not work either e.g.
RewriteEngine On RewriteRule ^/whoweare/$ http://www.thedomain.com/whatever [R=301,L] RewriteBase / ...Any ideas?
I even encoded my own redirecter in 404.php but ofc in this case WP is not 404’ing and 1. its query string data on the root and 2. it has p= a querystring WP uses (this is why blog index is loading’
half a mind just to give up and let their SEO die 😀
The topic ‘Base url redirects with a p= querystring’ is closed to new replies.