Need help with redirect after moving wordpress from folder to root

Discussion in 'Apache' started by Steupz, Jul 25, 2012.

  1. #1
    I moved my wordpress from the folder to the root by placing the index file on the root but now my individual posts/tags/and categories redirect well but anyone who linked to my old homepage receives a 404 error, so:

    clicking www.bourgy.com/wordpress returns a 404 but clicking on http://www.bourgy.com/wordpress/bridalplasty/ works.

    How can I solve this. Should I use a second htaccess file in the folder and what would the code be?
    Thanks.

    Just to add, the reason I could not do:
    Redirect 301 /wordpress http://bourgy.com

    is that it also redirects my admin and plugins which are in the wordpress directory.
     
    Last edited: Jul 25, 2012
    Steupz, Jul 25, 2012 IP
  2. Ray Baron

    Ray Baron Member

    Messages:
    148
    Likes Received:
    10
    Best Answers:
    3
    Trophy Points:
    43
    #2
    WordPress has a bad habit of including URL and path information in the database so just moving the code is not a solution. You should search in your database (you can use phpMyAdmin for this) for the path and the base URL and update the data entries.
     
    Ray Baron, Jul 25, 2012 IP
  3. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks... I've done so much with this htaccess that I wonder now if it was worth moving it
     
    Steupz, Jul 25, 2012 IP