WordPress.org

Support

Support » How-To and Troubleshooting » Best way to move my blog to root directory

Best way to move my blog to root directory

  • Hi,

    I need to move my blog from http://www.mydomain.com/blog to http://www.mydomain.com.

    But I would like to have redirects from each page to its new corresponding one. It has fewer than 30 posts, but I would also like redirects on the tags and category pages too.

    What is the best way for me to do this please?

    And how would I word it to get a freelancer to do it (if I find it too difficult)?

    thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • Here is a real good guide on how to move your blog to the root directory and do redirects.

    dkotter thanks, very useful.

    Thanks dkotter,

    It seems very thorough. I’ll try to do it myself.

    thanks

    OK, I am still at the dummy-run stage. I have installed WP on a /blog directory on an unimportant site, so I can practice moving it, as the article suggests, but at Step 3 it says:

    Step 3:
    Check whether you have a .htaccess file in both your /blog folder and root folder.

    If you do, make and save copies of both and then combine them by copying the content of each into a new (third) file. Create this file with a text editor.

    Save all three files somewhere on your local machine, so you have backups of everything – you’ll need the content of the combined .htaccess file later.

    I don’t have a .htaccess file at all in the root or the /blog directory.

    Do I have to make one for each?

    or just for one?

    thanks a lot

    OK, forget my last post.

    UPDATE:

    I managed to do a successful dummy-run on another blog.

    Sadly, on the actual site, I got complacent and forgot to move the existing XSitePro site out of the way first.

    Although the blog shows up at the main domain: http://EngineerYourSuccess.com, all the links point to the index page and I get a blank screen in Filezilla!

    I can still see all the files in File Manager though so I moved all the ones that didn’t say “today” in the last modified column to a temp-root folder, but it’s still broken.

    To make things worse my WP login didn’t work (even though I copied and pasted) so I asked WP for a new one (using both username and email), but it never sent the emails. (My email for that account might be on the domain that redirects to the gmail one. I guess that would explain why I never got it).

    So unless anyone knows of another way I think I’ll have to do a total backup restoration, which I will learn how to do. Luckily I have a backup sent to me every week through a WP backup plugin.

    Is there something simple I can do to fix it, or have I really messed up big time?

    thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Best way to move my blog to root directory’ is closed to new replies.
Skip to toolbar