: When redirecting to a beta sub domain should I use 301 or 302? I have a website with a domain of www.mysite.com for example and I wish to redirect some of it's content to a new version
I have a website with a domain of mysite.com for example and I wish to redirect some of it's content to a new version that is under development under a sub domain i.e everything under mysite.com/specific-section now goes to beta.mysite.com/specific-section. In the long term the code in the beta site will replace the code main www site at which point the beta site will be closed and the redirects from the www site will be removed.
Using a 302 redirect seems like the right idea in this situation but as I am no SEO expert I wanted to get some feedback.
Can I avoid the beta site from being indexed by various search engines? I am aware they all handle 301s and 302s in slightly different ways.
When the beta domain is removed should it disappear from search engine results?
An alternative that has been suggested is to make it a 301 redirect and when the beta site in no longer require to perform a 301 redirect back to the www site. Is this an option is will this cause SEO pain?
Edit: I have amended the question a little as I don't think I explained myself too clearly. The beta site it temporary and will eventually be removed. the www site is and always will be the main site.
More posts by @Bryan171
1 Comments
Sorted by latest first Latest Oldest Best
If the current live site is still up and running I wouldn't even have the beta domain indexed by the search engines at all. Messing with redirects, especially double redirects, can get messy and potentially be problematic. When you make the transition over to the new website you're going to have enough work to do when you make redirects from the old URLs to the new URLs and have to deal with a temporary drop in rankings. I wouldn't want it to be any more complex then that.
My advice would be to block the beta version from the search engines completely by using a robots.txt file and/or the robots meta tag/x-robots HTTP header. Then when it goes live do 301 redirects from the old URLs to the new URLs. It's the simplest way to do it and also the least prone to problems.
If the beta subdomain is the live website I would do a 307 redirect which is a temporary redirect. That will tell the search engines that the beta URLs are temporary and the old ones will be returning soon (although possibly under a new URL but a 301 redirect will take care of that).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.