htaccess with 301 redirect of index.php pages
-
Hello, thank you for looking. I have just replaced an old CMS website with a brand new WordPress solution, but am having issues with 301 redirecting the old URL to the new, SEO friendly URL’s created by WP. The old URL’s where are structured like:
/index.php?p=conference_programme
So when I do a 301 for that, it seems to collide with the line:
RewriteRule . /index.php [L]
The last bit just seems to remove the index,php part and doesn’t redirect it. The complete htaccess code is:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Redirect 301 /index.php?p=director https://www.oxfordanimalethics.com/who-we-are/director/ Redirect 301 /index.php?p=advisers https://www.oxfordanimalethics.com/who-we-are/advisers/ Redirect 301 /index.php?p=news https://www.oxfordanimalethics.com/about-the-centre/latest-news/
Any help with this would be very appreciated.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘htaccess with 301 redirect of index.php pages’ is closed to new replies.