I have a blog under a sub-domain, let's say it's test.example.com. I want to move all my sub-domain content to my main domain example.com and delete my sub-domain. How much will this affect my SEO rankings? And how can I minimize the amount it gets affected?

  • What do you have on the main domain now? You say you want to "delete" the sub-domain. What does that mean? For SEO you would generally have to leave it in place and redirect it. Aug 11, 2017 at 15:46
  • On my main domain I just have a promotional website and I have a blog on my sub-domain, I want to move the blog to my main domain. So would I have to not delete my sub-domain and just redirect to my main domain when a user visits it? @StephenOstermiller Aug 11, 2017 at 15:51
  • So what is going to happen to the promotional website? Aug 11, 2017 at 15:58
  • Well I don't really get much traffic there, I get more traffic on the blog so I was just thinking of deleting the promotional site and replacing it with the blog. @StephenOstermiller Aug 11, 2017 at 16:01
  • When you move text to the primary domain, the search engines index it as new content for the primary domain - example.com.
    – user29419
    Aug 11, 2017 at 16:07

1 Answer 1


If you manage redirection properly then you should be fine.

Move your blog (test.example.com) to example.com.

Once this is done then just redirect your sub-domain pages to respective pages on the website.


Old Blog: test.example.com => Blog

test.example.com/blog-page1 => Blog Page


Once this is moved to example.com then you should have pages on your main domain like:


Now, with regards to redirection (301), depending on your server type you may be able to redirection at sub domain level. So any sub domain page will automatically get redirected to a respective page on the main website. If this may be hard then you can do individual redirection.

  • I'm using Apache as my web server, so can I use an .htaccess file for redirection? If so can you give me an example of what it should look like... Keep in mind I have many routes in my sub-domain. For example, test.example.com should redirect to example.com, test.example.com/blog should redirect to example.com/blog and test.example.com/blog/my-blog-post should redirect to example.com/blog/my-blog-post and so on... Aug 12, 2017 at 2:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.