WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Re-directing all site links after moving blog (5 posts)

  1. kylen20
    Member
    Posted 3 years ago #

    Hi

    I've just moved my entire blog from a sub-folder to the root directory and want to set up a global redirect so that all previous links to the posts still work and are re-directed to the new location.

    I'm pretty sure that just requires some code being added to the .htaccess file, but I'm not entirely sure what. The wordpress files previously resided in this folder:

    http://www.movebeyond.net/know-no-limits/

    and are now all here http://www.movebeyond.net/

    I'd be grateful if someone could give me the code so I can just copy and paste it into the .htaccess file. Thanks!

    Kyle

  2. Revising what I had put here (found online) because I don't think it was quite correct - another solution below.

    Be sure to download and back up your existing .htaccess first - let me know if it works!

  3. I also had this syntax noted from a previous move:

    RedirectMatch 301 ^/know-no-limits/$ http://www.movebeyond.net/
    RedirectMatch 301 ^/know-no-limits$ http://www.movebeyond.net/
    RedirectMatch 301 ^/know-no-limits/(.*)/$ www.movebeyond.net/$1/
  4. kylen20
    Member
    Posted 3 years ago #

    My brains's failing me tonight. Just figured out the simplest answer - install a plugin to do it for me! Thanks heaven for Quick Post / Page Redirects plugin!

    http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/

  5. If you would please mark this thread as "resolved" (drop-down menu in the right column) it would be appreciated. Helps everyone keep better track of whose issues are still outstanding. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic