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 that is under development under a sub domain i.e everything under www.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.