• 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. https://codex.www.ads-software.com/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 / https://newsubdomain.example.com/

    The trailing slash after .com is required

    Thread Starter Matthew Hui

    (@zazinteractive)

    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 / https://newsubdomain.example.com/

    The trailing slash after .com is required

    Could I also do this?

    redirectPermanent https://subdomain.domain.com https://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 https://test.domain.com/about it should redirect to
    https://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.

    Thread Starter Matthew Hui

    (@zazinteractive)

    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 https://mu.www.ads-software.com/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.