Best way to setup redirect on entire site?
What's the most efficient way to set up a redirect on an entire site (including all subsites). I know I can use a CEWP to setup a redirect on one particular page, but I'm more interested in something that will work across all pages/subsites. Background - We had a site setup at http://site1.company.com. It was decided that the content be backed up and restored to a new site at http://site2.company.com. I have restored site1 into site2 and site2 is up and running. site1 is currently Read Only but I want users who browse to site1 to be redirected to site2, regardless which site1 URL they try to browse to. What is the best way to achieve this?
November 29th, 2010 6:53pm

You should be able to achieve this with an Alternate Access Mapping - this isn't redirection but is a lot easier to setup and will apply to your entire site. So long as the default url for site2 is http://site2.company.com, you can add a new public url in a different zone (say Intranet) of http://site1.company.com. You will likely have to update your host DNS records to reflect the IP address change. If you are using host headers you'll also have to add a header into the web app currently hosting site2 for site1 - make sure it comes after the site2 header in the list. The net result for example would be that someone who browses to http://site1.company.com/somerandomsite/pages/default.aspx, will resolve to http://site2.company.com/somerandomsite/pages/default.aspx (and this will work for any url). This will also allow you to completely decommision the site1 web site as well. I hope this helps, CraigSenior Systems Engineer / SharePoint Architect | MSDN Profile | SharePoint Task Force
Free Windows Admin Tool Kit Click here and download it now
November 29th, 2010 8:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics