Last post Dec 14, 2018 04:27 PM by bruce (sqlwork.com)
Dec 12, 2018 06:26 PM|Lambe|LINK
Dec 12, 2018 07:05 PM|l.laxmikant|LINK
whenever requests or Action method executed for newdomain.com/abc redirect it to abc.mydomain.com using permanent link.
public ActionResult Redirect()
return new PermanentRedirectResult ("http://abc.mydomain.com");
Dec 12, 2018 07:59 PM|Lambe|LINK
Dec 12, 2018 08:29 PM|l.laxmikant|LINK
your issue is creating bundle or rendering bundle
When you run your application are you able to browse through browser http://abc.mydomain.com/Scripts/coreScriptsBundle?. If not means problem is in creating bundle
If rendering is the issue try
Dec 12, 2018 08:41 PM|Lambe|LINK
Dec 14, 2018 04:27 PM|bruce (sqlwork.com)|LINK
your reverse proxy needs to edit the response html and change the imbedded urls to add the "/abc". most proxy servers have regex support to do this.
another option is to make sure all urls are relative to the requesting page. this will require writing your own url handler to use instead of Url.Action, and Url.Content, and of course the implicit "~/" support.
a final option is to duplicate your site on the primary server in subfolder "/abc". then the proxy is just domain to domain (you can use a host header or port to make a separate site).