Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Have just finished working on a dev site and the live site has been launched (on a different server/url) - unfortunately, Google bots were very efficient and have inadvertently indexed the dev site (which became 'open/live' during the last few days of development for testing purposes)

I have now archived the site, but if visitors reach it, all they receive is a 'suspended' message - so I was wondering how best to 'redirect' users to the new/correct url and server using multisite?

e.g. would it be best to use a plugin like Redirection and direct all traffic away? Or to leave it as archived so 'suspended'? And would it be advisable to use Google's Remove URL tool?

Thanks in advance

share|improve this question
    
Are both sites using the same permalink structure? –  toscho Apr 30 '13 at 21:09
    
@toscho Thanks for your reply. Yes they are. –  Mosey Apr 30 '13 at 22:57
add comment

1 Answer

Add a RedirectMatch to your dev site’s .htaccess to tell Google the canonical addresses are on the new site:

RedirectMatch Permanent (.*) http://new.example.com$1
share|improve this answer
    
Thanks for your reply :) Can I just clarify that it should be placed in the multisite .htaccess file? (Apologies for not being clear that the dev site was part of a multisite) –  Mosey Apr 30 '13 at 23:28
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.