See this tutorial Moving_WordPress – and ask back if you have more questions.
So that all your incoming links still work,I found this worked for me.
leave a .htaccess file in the now empty original blog folder with this one line.
redirect 301 /blog/ http://www.YOURSITE.com/
Yeah that would get a reader to my front page instead of a 404 error page (right?) but what I’m hoping I can do is configure htaccess to redirect each and every existing link to its relative page at my new address. For example:
mydomain.com/blog/post100 —> mydomain.com/post100
mydomain.com/blog/post101 —> mydomain.com/post101
mydomain.com/blog/post102 —> mydomain.com/post102
… and so on.
Is this possible?
I’m pretty sure thats what it does..just the one line
I didnt make that very clear,
do what I suggested and you get every page redirected to its corresponding page. Its like magic!!
Great, will try it. Thanks.
Wicked. Piece of cake. Didn’t need to leave a htaccess file in the /blog directory either. Just added the code to the main htaccess file (which I’d moved to root). Thanks.
🙂
it all looks good except
http://last-straw.net/blog
redone your permalinks and deleted the /wp-content/cache directory ?
Oh yeah, http://last-straw.net/blog doesn’t work but http://last-straw.net/blog/ does. What’s that about?
Yeap, redone my permalinks and deleted cache.
Added redirect 301 /blog http://last-straw.net/
and this appears to have fixed the problem. Thanks.