Home Subscribe to this site with an RSS reader Search this site Contact Likoma Uh, a little help here, please?

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:

  1. Change the settings of the URL in two places in the General settings,
  2. Save,
  3. Go change the name of the directory using FTP (from wordpress to blog),
  4. 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:

CODE:
  1. RewriteEngine On
  2. RewriteBase /wordpress/
  3. 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.


13 Responses to “Moving WordPress from one sub-directory to another”

  1. Villy Says:

    Just the guide I was missing to finish moving my site around..Thx!

  2. antalya evden eve Says:

    very nice thanks admin

  3. Business Forum Says:

    Thanks for the info. Was searching for this and you explained it easy :)

  4. Catherine Says:

    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.

  5. www.antalyaevdenevenakliyat.gen.tr Says:

    Thanks for the info. Was searching for this and you explained it

  6. Leveraging Localhost WordPress for Learning Webmaster Skills | Website In A Weekend Says:

    [...] 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 [...]

  7. discount electronics Says:

    I'm looking for it!
    Thanks!

  8. John Says:

    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.

  9. pandora charms Says:

    Thanks for you share....it is very useful for me....

  10. gemstone beads Says:

    just find it....great thanks...

  11. Bursa Haber Says:

    Wordpress directory solved most of the problems I'm having.

  12. diS beyazlatma Says:

    ooo thanks posted

  13. söve Says:

    Great post.Thanks.

Leave a Comment