Here is a quick solution to an small issue we had here at work…
One of our internal users (of our SPS instance) wanted to redirect an old list to a new list. I did not want to create a code-based solution (e.g. an aspx page, et al) and with the friendly "Apache could do this" jabbing I got from this guy I decided to see if IIS would handle it. And it did … really easy:
Example:
Redirect http://mysite/sites/Department/IT/oldlist to http://mysite/sites/Department/IT/newlist
- On the filesystem in your webroot, create a folder structure mimicking the URL:
c:inetpubsharepointrootsitesDepartmentIToldlist - Open IIS Management console and locate that folder
- Right-click on that folder and select properties
- Use the "A redirection to a URL" option in the Directory tab
- Enter the new URL (absolute OR relative) in the Redirect To: box
- Test it
All other sites in that path should remain untouched by IIS but since IIS processes this redirection prior to running the ISAPI filter/extension (e.g. SharePoint) then there is no need to even unmange this path from within SharePoint itself.
Simple. Clean. Quick. Even an Admin can do it!
Can force the default site to redirect to specific site.
Example:
User goes here:
http://mysite/
The get redirected to here:
http://mysite/sites/Department/
I am not sure on that one but did you try the above technique? Try it on the "Default Web Site" branch in the IIS MMC console.
Thank you for this, this is a great way to redirect users from our SharePoint 2.0 server to our new SharePoint 3.0. Nice and simple, I can probably uninstall sharepoint from the 2.0 box and it will all still work. Very cool.
Thanks for this tutorial. I had been wondering how to do that until i read this. sn.vc
Hi, this is a great post. I’ve tried other options to redirect SharePoint sites in IIS but this is the simplest and actully works. But I have a question do you need to modify the managed path in Central Administration?