First published on TECHNET on Oct 02, 2017
Hello All,
I worked on figuring out what I believe is the best way to redirect Site Collections as my customer worked to break up a large Web Application. I found many choices and they all have pros and cons, but I am providing what I liked best.
Using URL Rewrite Module (See support statement https://support.microsoft.com/en-us/help/2818415/supportability-of-rewrites-and-redirects-in-sharep... )
Steps to implement(Redirecting from http://sp2013app01/sites/horse to http://sp2013app01:27443/sites/horse :(
Using URL Rewrite
- In IIS in Web Site double click on URL Rewrite
- Click on Add Rule then Blank Rule, and Ok
- Under 'Match Url' provide a pattern for IIS to catch using Regular expressions and ignoring the host name (See https://technet.microsoft.com/en-us/library/gg440701.aspx ) I used the value horse. *
- Create a condition to watch for a particular Web Application (or HTTP_HOST) I used the values {HTTP_HOST} and ^sp2013app01$
- Finally create an action I used the values Redirect and http://sp2013app01:27443/{REQUEST_URI} (See https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/url-rewrite-module-configuration... for more info about REQUEST_URI)
- Perform IISReset or Disable then Enable the rule
Hope this helps someone else :)
Pax
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.