When moving a site from a subdomain to a primary domain, what's the best way to redirect the traffic
When moving a site from a subdomain to a primary domain, what's the best way to redirect the traffic?
...and then change it to:
...as a form of 301 redirect.
Is this the best way and what are the downsides if any?
Yes, you should use a 301 redirect, typically in the .htaccess file, to accomplish this task. We recommend this article – How to Use a 301 Redirect – as a reference. Just follow the steps.
- Regarding the old site; hopefully you have that property/domain verified in Google Search Console. If not, get the old domain verified before moving it. Doing this will enable you to inform Google that the site has moved. Remember, you must verify the subdomain: content.current-domain.co.uk, NOT www.new-domain.co.uk
- Next activate your 301 redirect when you are ready to launch the new www.new-domain.co.uk domain.
- Verify the new domain in Google search console.
- Finally, submit a change of address notification for the old domain to Google Search Console - for instructions go here.
That should do it....