During a recent migration from SPS2003 to MOSS, the question came up of how to redirect users to old content while the team site was still being cut over.
Scenario: I have SPS2003 running on http://oldserver and MOSS running on http://newserver.
What I needed to do was create place holders for certain sites so that when a user hit the site on the new server (http://newserver/SiteDirectory/demosite), they would be redirected back to the old content (http://oldserver/sites/demosite).
This is how I accomplished this:
- Setup a new team sites using the publishing site template. The key thing to note here is that you need to be able to create pages, so if you’re not using a publishing site template, then the published features need to be turned on.
- Within each team site, a new page was created using the (Redirect Page) Redirect Page page layout.
- The url to route to was configured in the redirect page.
- Within Site Settings, under Look and Feel, Welcome page, the new redirect page was selected.
That’s pretty much it. The next time I land on this site, it will redirect within a few seconds. I did a bit of research on this prior to implementing this and found a great article written by Todd Klindt.
In his article, he describes the various options for redirects available within SharePoint. I attempted the content editor option first but I found one key distrinction between that and the redirect page option.
The redirect page is smart enough to recognize when you are a site owner or an administrator and will give you some time before redirecting so that you’re able to administer the site. The content editor solution will redirect regardless of who you are and what permissions you have, thus making it difficult to access the Site Settings before the redirect occurs.
That’s it, hope that helps some people. I welcome all feedback.