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

SharePoint Redirect to non-FQDN

$
0
0

Hi together,

My problem is following:

I have a webapp in SharePoint 2013 where i stored my Rule. It works fine on my dev machine, but not on the prod server. On the prod server there is a load balancer to, and all domainnames are linked to the same IP Address

<rewrite><rules><clear /><rule name="SC-Move-URL-Change-Rewrite" enabled="true" stopProcessing="true"><match url="([^/]*)/([^/]*)/(.*)" ignoreCase="true" /><conditions logicalGrouping="MatchAll" trackAllCaptures="true"><add input="{ManagedPathMap:{R:1}}" pattern="(.+)" /><add input="{MyRewriterMap:{R:1}/{R:2}}" pattern="(.+)" /></conditions><action type="Rewrite" url="/{C:2}/{R:3}" appendQueryString="false" logRewrittenUrl="false" /></rule><rewriteMaps><rewriteMap name="MyRewriterMap"><add key="sites/Human_Resources" value="sites/HR" /><add key="sites/Information_Technology_Operations" value="sites/ITO" /><add key="sites/Sales_Service_Business" value="sites/Sales/Business" /><add key="sites/Banking" value="banking/new-collection" /></rewriteMap><rewriteMap name="ManagedPathMap"><add key="sites" value="sites" /></rewriteMap></rewriteMaps></rewrite>

The rule can be detected, and it is rewriting to the action url, but i get a 404 Error that the page could not be found.  The server url what is used, is for example:

http://example/sites/Human_Resources => which should rewrite to => http://example/sites/HR

I found out, that is rewriting to http://example.sharepoint.com/sites/HR (non-FQDN) therefore i will get the error.

How can I fix it, or which ways should i do,  that it rewrites to http://example/

Thanks a lot


Viewing all articles
Browse latest Browse all 2482

Trending Articles