Last post Oct 01, 2015 08:33 AM by HomeCinemaGuy
Oct 01, 2015 07:49 AM|HomeCinemaGuy|LINK
I have the following setup.
SharePoint site running in port 80 (localsite.com:80)
MVC Application running on port 81
In IIS I have set up a URL Rewrite so all urls that start with /MVC goes to port 81
This works fine.
The problem is when the MVC application does a simple redirect to any external URL (Return Redirect("http://www.asp.net")) it then rewrites the location header to be localsite.com:80/. I assume it is IIS that does this. I dont have any outbound rules.
Relative redirects inside application works fine.
Any ideas how to solve this. Accessing directly to port 81 causes redirect to works fine.
Oct 01, 2015 08:33 AM|HomeCinemaGuy|LINK
I got my own answer:
You have to uncheck the rewrite headers in proxy settings
iis > server > Application Requiest Caching -> Remove Reverse rewrite host in response headers