• I am looking for the information on moving WordPress from domain.com/blog to domain.com and establishing a redirect to all incoming traffic to domain.com./blog/post-url goes to domain.com/post-url and not a 404

    This is for a hosted environment with ftp access only.

    I am sure it is around here somewhere, just all the stuff I have found so far talks about moving physical files, which is the easy part. I don’t want the customer to lose any of the incoming links already out there.

    Thanks for any points

Viewing 1 replies (of 1 total)
  • Brian

    (@wgbcworship)

    you don’t need to move everything, just your index file. This should do the trick for moving the blog: https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    during that process you’ll want to rename the folder that your blog is in. Assuming it is now “blog” perhaps change to “wordpress.” if you have modified your theme to use hard links, you’ll need to be sure to change those as well. After the change go to Settings>Permalinks and create a custom permalink structure that starts with your old blog folder name. something like

    blog/%postname%/
    or
    blog/%year%/%monthnum%/%postname%/

    whatever suits your old permalink structure.

    I personally have not done this, but in theory, it should work. Any expert feel free to contradict or confirm.

Viewing 1 replies (of 1 total)
  • The topic ‘Moving wordpress from sub domain to root’ is closed to new replies.