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.
Have you looked at the routing mechanism that came out of the MVC project, but is now a standalone feature of the .NET Framework?
With IIS7, the path is probably the module that Microsoft itself releases: http://blogs.iis.net/ruslany/archive/2008/11/10/url-rewrite-module-release-to-web.aspx
/: http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
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).
I use ManagedFusion Url Rewriter on my blog. I like it because it does not need to be installed at the server level.
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.
Source: https://habr.com/ru/post/1699374/More articles:What is the best way to export your own data to Excel without introducing an Office dependency? - excelWhat is the best practice for providing JSON data in JSP? - javaWhere is the best place to create and close a Silverlight WCF service using a Silverlight application? - web-servicesWhat is the best way to implement a friendly URL in ASP.net? - asp.netHack search to prevent application rewriting without using session variables - session-variablesЕсть ли лучший способ сравнить общую производительность .Net и Java в настройке электронной коммерции, чем "зоомагазин"? - javaHow to call a C # web service via PHP? - c #Convert image as image to byte array in VB6 - vb6How can I style XML with CSS for viewing in a browser without first converting to (X) HTML? - cssLoading an image image from a byte array in VB6 - vb6All Articles