I want to retire an old DNS Name for SharePoint without additional Alternate Access mappings
I want to point the Old DNS to a simple IIS Server, (not the SharePoint server) on this server I want to set up redirects for any requests
http://oldNetbiosNamedSite/Sites/Site/Page.aspx?param =>https://portal.company.com/Sites/Site/Page.aspx?Param
I thought this would be simple as I have used URL Rewrite before for amazing things.
If you can point me to the simplewst way to do this I'd appreciate it.
I set up IIS and the site with the following
- I set up an empty IIS Site using a host header on 2012 Server
- enabled web-Tracing
- installed URL Rewrite
- enabled ASPNet 3-45
- set up request tracing to capture URL Rewrite failed requests
and added the following rule:
<rewrite><rules><rule name="Route the requests for Company1" stopProcessing="true"><match url="^(.*)" /><conditions logicalGrouping="MatchAll"></conditions><action type="Rewrite" url="https://portal.company.com/{R:1}" logRewrittenUrl="true" /></rule></rules></rewrite>
I have tried multiple types of Requests, they all pattern match in the rule tester
- http://oldNetBiosnamedSite/
- http://oldNetBiosnamedSite/default.aspx
- http://oldNetBiosnamedSite/sites/site1/
- http://oldNetBiosnamedSite/sites/departments/IT/Documents/Forms/IT%20Business%20Unit.aspx?FilterField1=IT%5Fx0020%5FArea&FilterValue1=IT%20Department&FilterField2=Document%5Fx0020%5FType&FilterValue2=Presentation
They all seem like they should work
But in Freb log I see entered rewrite and exit rewrite events lines and the pages mostly display
HTTP Error 404.4 - Not Found
The resource you are looking for does not have a handler associated with it.
Most likely causes:
The file extension for the requested URL does not have a handler configured to process
But for fully qualified pages I see
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled
correctly.
Requested URL: /sites/departments/IT/Documents/Forms/IT Business Unit.aspx