WordPress.org

Ready to get started?Download WordPress

Forums

Moving blog homepage from directory to root while leaving post urls the same (6 posts)

  1. vagabondjourney
    Member
    Posted 2 years ago #

    Hello,

    I'm trying to move my blog's homepage from a directory to the root, but I want all the urls for all the posts and pages to remain the same. The only url I want to change is mysite.com/blog to mysite.com. I want the post urls to still be mysite.com/blot/page-title/. I've read http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Sand
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory but these moves seems as if the urls of all the posts will be changed, and will be mysite.com/post-title/. Is there anyway to just move the homepage and to leave everything else the same?

    This blog has 2,000+ pages and is relatively old and runs a lot of plugins so I don't really want to change the post urls.

    Thanks.

  2. vagabondjourney
    Member
    Posted 2 years ago #

    Hello? Does anybody know anything about this? I can't be the first person who wanted to have their homepage of their blog appear in the root and the posts in a directory. Even someone saying, "Hey, this is not possible" would be good here.

  3. Denis Leblanc
    Member
    Posted 2 years ago #

    Once you move all the site files over you can drop a .htaccess file into it with a redirect rule pointing to the new URL. If the post slugs stay the same they should all point over correctly.

  4. vagabondjourney
    Member
    Posted 2 years ago #

    Thanks Denis for responding.

    I understand that I can put up a 301 redirect, but I would really prefer to keep the urls for the posts the same. Do you know any way to do this?

  5. Denis Leblanc
    Member
    Posted 2 years ago #

    Not off hand, not even sure if it's possible. Any reason why you'd want to keep the original URL but not the directory structure?

  6. vagabondjourney
    Member
    Posted 2 years ago #

    Because I've moved this site in a new direction and would like to terminate the previous homepage in the root and substitute it for the blog's homepage. I just want to switch the address for the blog's homepage to the root.

Topic Closed

This topic has been closed to new replies.

About this Topic