I needed to move a site from the sub-directory /wordpress/to the new one /blog/. No worries:
- Change the settings of the URL in two places in the General settings,
- Save,
- Go change the name of the directory using FTP (from wordpress to blog),
- Do a search and replace for /wordpress/ to /blog/.
Great, done. However, there were a handful of old posts that might have caught a bit of traffic and I wanted to set up a redirect so that /wordpress/article-about-whatever/ went to /blog/article-about-whatever/. I knew enough to know I needed to use the .htaccess file. I was hoping that the Redirection plugin could do it (and it probably could, but I couldn’t figure it out). So I came across this article (How to Move WordPress With htaccess and 301 Redirect) and I just altered the code a bit to get this:
RewriteBase /wordpress/
RewriteRule ^(.*)$ http://the-m-line.com/blog/$1 [L,R=301][/code]
However, I couldn’t figure out where to put that. Finally, I read it closely again and I needed to re-create that /wordpress/ directory and put the .htaccess file there. Aha! Now it’s working beautifully. See this post:
http://the-m-line.com/wordpress/business/is-print-dead-not-in-new-jersey/
Thanks Zaib Kaleem.
Just the guide I was missing to finish moving my site around..Thx!
very nice thanks admin
Thanks for the info. Was searching for this and you explained it easy :)
Hello I found this blog by Google; it’s by this post I found my answer for what I was looking for. Thanks for the great post looking for more quality post.
Thanks for the info. Was searching for this and you explained it
[…] example for your blog. Or whatever. Bradley Charbonneau provides a distinctly telegraphic procedure for moving WordPress between subdirectories, which works fine for me, but bears a bit more in-depth examination for some […]
I’m looking for it!
Thanks!
Hey, just wanted to thank you for this post and for your example … making the redirect from my old WordPress directory solved most of the problems I’m having.
Thanks for you share….it is very useful for me….
just find it….great thanks…
WordPress directory solved most of the problems I’m having.
thanks for this… it worked like i expected!!!
thanks…
Thanks for this, worked perfectly!