Closed alvipeo closed 5 years ago
Hey, I just added a response on SO. The issue is that the regex match is done on the path/query string rather than the whole URL. This is standard for most/ all url rewriters, so I created a quick custom one with an Action
Pretty sure this is a duplicate of https://github.com/aspnet/BasicMiddleware/issues/196. Well, technically the other way around but 196 contains the relevant detail in the issue without linking to SO.
Closing this and keeping #194 open instead.
Hi! I'm trying to do a simple thing - force 301 for www to non-www. Like described here - http://stackoverflow.com/questions/41205435/asp-net-core-1-1-url-rewriting-www-to-non-www. Can you please tell me why it doesn't work?
Thank you!