vagabondjourney
Member
Posted 1 year 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.
vagabondjourney
Member
Posted 1 year 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.
Denis Leblanc
Member
Posted 1 year 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.
vagabondjourney
Member
Posted 1 year 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?
Denis Leblanc
Member
Posted 1 year 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?
vagabondjourney
Member
Posted 1 year 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.