WordPress.org

Support

Support » How-To and Troubleshooting » Move wordpress blog to new subdomain and redirecting all posts to new location?

Move wordpress blog to new subdomain and redirecting all posts to new location?

  • Right now my blog is on a subdomain but I want to move it to a different subdomain. What is the best way to redirect all posts from old subdomain url to new subdomain url?

Viewing 5 replies - 1 through 5 (of 5 total)
  • First, you must go through the “move my blog” process detailed on this page. http://codex.wordpress.org/Moving_WordPress

    Then, I believe that putting this in the .htaccess file in the old subdomain will redirect everything to the equivalent URL in the new subdomain
    redirectPermanent / http://newsubdomain.example.com/

    The trailing slash after .com is required

    Then, I believe that putting this in the .htaccess file in the old subdomain will redirect everything to the equivalent URL in the new subdomain
    redirectPermanent / http://newsubdomain.example.com/

    The trailing slash after .com is required

    Could I also do this?

    redirectPermanent http://subdomain.domain.com http://newsubdomain.domain.com/

    no, the redirect code does not work that way

    The way I did it before accomplishes what you are after.

    If you want to test, set up a temp testing subdomain and redirect it to your present live site – if the temp subdomain is test and you have an about page on your live site then if its working correctly, when you enter http://test.domain.com/about it should redirect to
    http://newsubdomain.domain.com/about – test it out – you don’t even need to have a page called about existing on the test subdomain for this to work.

    Only problem is that I am using WordPress mu and the .htaccess file is shared by all of my blogs so the redirect would apply to all of my blogs as well. Any ideas? Thanks for the help so far

    Hi – Best to ask that question on the WPMU forum http://mu.wordpress.org/forums/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Move wordpress blog to new subdomain and redirecting all posts to new location?’ is closed to new replies.
Skip to toolbar