How to 301 redirect ?page_id=xxxx
-
Hi,
I’ve been using this URL structure (permalink) for my site’s pages:
mysite.com/news/something-something
I’m not sure if the default URLs have been 301 redirected and if not how can I do this.I’ve added this to my .htaccess:
RewriteCond %{THE_REQUEST} ^GET\ /.*\;.*\ HTTP/
RewriteCond %{QUERY_STRING} !^page_id=$
RewriteRule .* https://mobiledealstop.co.uk%{REQUEST_URI}? [R=301,L]but Google still shows the ?page_id URLs under Webmaster tools/Restricted by robots.txt, meaning that these are still accessible despite disabling them in the robots.txt file.
I will appreciate any advice
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to 301 redirect ?page_id=xxxx’ is closed to new replies.