IIS7: rewrite URL http://web1.com/web1/def.aspx to http://web1.com/def.aspx

I need my site to be stored in a subfolder of my domain root. Is there a way to rewrite URLs so that they are not stored in a subfolder? For me it does not matter if this is done at the IIS level or in web.config.

+3
source share
5 answers

Have you looked at the routing mechanism that came out of the MVC project, but is now a standalone feature of the .NET Framework?

+1
source

If you decide to go with an ISAPI filter, we had a good impression of Ionic Isapi Rewrite . And it's free (beer and speech).

+1
source

I use ManagedFusion Url Rewriter on my blog. I like it because it does not need to be installed at the server level.

+1
source

Apparently, you can get the desired behavior using the ISAPI filter.

Google for: rewrite the ISAPI filter, and you will find some ready-made examples to try and see what works best for you.

0
source

Source: https://habr.com/ru/post/1699374/


All Articles