Comments
Recently
Moving WordPress from one sub-directory to another
By Bradley Charbonneau | Filed under Help, Hosting, SEO, WordPress
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:
-
RewriteEngine On
-
RewriteBase /wordpress/
-
RewriteRule ^(.*)$ http://the-m-line.com/blog/$1 [L,R=301]
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.





June 18th, 2009 at 2:31 am
Just the guide I was missing to finish moving my site around..Thx!
June 20th, 2009 at 3:47 am
very nice thanks admin
July 11th, 2009 at 2:05 am
Thanks for the info. Was searching for this and you explained it easy :)
July 24th, 2009 at 7:04 am
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.
July 26th, 2009 at 5:19 am
Thanks for the info. Was searching for this and you explained it
July 30th, 2009 at 9:03 am
[...] 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 [...]
October 19th, 2009 at 1:21 am
I'm looking for it!
Thanks!
January 10th, 2010 at 6:48 am
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.
January 10th, 2010 at 4:05 pm
Thanks for you share....it is very useful for me....
January 10th, 2010 at 4:06 pm
just find it....great thanks...
January 11th, 2010 at 11:42 pm
Wordpress directory solved most of the problems I'm having.
June 24th, 2010 at 2:35 am
ooo thanks posted
June 27th, 2010 at 8:41 am
Great post.Thanks.