Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ASP.NET Core URL Rewriting to sub-folder ASP.NET Core 1.x

$
0
0

My main website is mainsite.com. I have a domain pointer setup for seconddomain.com So if I type in seconddomain.com the URL resolves to mainsite.com and the address bar displays seconddomain.com.

I need to setup a Rewrite to a sub-folder. When a user types in seconddomain.com it needs to go to seconddomain.com/subfolder. Do you use Microsoft.AspNetCore.Rewrite in startup.cs to accomplish this? Can someone provide an example?

Thanks
Brad


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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