Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Rules doesn't get enforced

$
0
0

Hi,

I need to change the domain name for all my host-name site collection sites in SharePoint 2013.
Example:
Old Domain: https://abc.olddomain.com
New Domain: https://abc.newdomain.com

I installed IIS URL Rewrite and set up a rule to redirect the old domain to the new domain, but the rule doesn't seem to be working at all.

The rule I have set up in the URL Rewrite is as follows:

Inbound rule: ^(https?:\/\/)?(.*).olddomain.com$
Redirect: https://{R:2}.newdomain.com

The {R:2} correspond to the host-name portion of the URL, so in the example above, it would be "abc".

When I tried to type in https://abc.olddomain.com in the browser, it does not redirect tohttps://abc.newdomain.com. It just goes to the standard Connection closed page (seen below), since I've renamed the site collection in Central Admin tohttps://abc.newdomain.com already.

HTTP/1.1 200 OK
Server: Microsoft-IIS/8.5
Date: Tue, 23 May 2017 15:25:56 GMT
Connection: close

I have tried "Repairing" the URL Rewrite Application in Control Panel, but that doesn't work.

I have verified the web.config file contains the rule I set up in the URL Rewrite application.

Any help or suggestion would be appreciated.

Thanks,
Ken.


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>