Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

because of "government filtering" in Iran, once in a while we have to move the whole site into a new subdomain. For example i create a new sub domain on my public_html : http://01.mydomain.com

I know Google webmaster has a feature to change domain, but it doesn't work with sub domains. as you can guess, the site is still accessible with www sub domain, now what's the best way to make Google to show the search results with new sub domain ? because the WWW sub domain is blocked now! any opinion would be helpful.

share|improve this question
    
Can you rewrite it with an htaccess file? Setup a 301 for everything to the new domain, then if anyone hits the old links it'll redirect them. –  DavidYell Apr 26 '12 at 14:18
    
thanks david, i did this before (new subdomain in another folder), but it had really bad effect on SEO. now that i have both subdomains in a folder it's better. but i'm looking for a way to completely migrate from on subdomain to another. –  NOjAN Apr 26 '12 at 16:24
    
You might be better off with a dynamic domain record which you can update on the fly to change where it's pointing. Then your domain would stay the same but where it points would change. Although you'd get downtime with the DNS propagation. –  DavidYell Apr 26 '12 at 16:26
    
thanks david, i'll do a search on that. –  NOjAN Apr 26 '12 at 16:40
add comment

1 Answer 1

up vote 0 down vote accepted

I would go with 301 redirection if i want to migrate my website to new location but as suggested by DavidYell, i wont redirect all to new domain but i will do one to one redirection.

Let me explain in details:

domain.com to a.domain.com

domain.com/page1 to a.domain.com/page1

And so on...

I already implemented this for more than 10 websites of my client and all worked great.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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