.htaccess 301 redirect old pages not working (2 posts)

  1. MattL1990
    Posted 6 years ago #

    I'm actually using version 2.9.2 the latest one. Anyways my problem is, I setup 301 redirects to redirect old pages from my Joomla website to my new wordpress pages. Unfortunately wordpress seems to strip some of the url away when it is typed in so that the redirect never happens.

    redirect 301 /index.php?option=com_content&view=article&id=30&Itemid=61 http://www.mysite.com/new-page/

    so when you type in http://www.mysite.com/index.php?option=com_content&view=article&id=30&Itemid=61 wordpress changes it to http://www.mysite.com/?option=com_content&view=article&id=30&Itemid=61 it removes the index.php so now the redirect doesnt work. I want the redirect to work for SEO reasons and incase anyone still trys going to the old urls.

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Are you adding the redirects before or after the WP rewrite block in the .htaccess file?

Topic Closed

This topic has been closed to new replies.

About this Topic