URL without extension in IIS7.5

Hey guys, I have a website that is working on Dotnetnuke, I am using dotnetnuke compatible url to use the pure url and not the urp urug url of QueryString, now my problem is what configuration is needed for unlimited URLs in dotnetnuke using IIS7.5, I checked a lot of websites on google but couldn’t do this, how can I use URLs without extension in asp.net since Dotnetnuke just allows friendly URLs, not URLs without an extension.

I even tried using URLRewriter.net, but that didn't help either.

Please help me how can I use url without extension in asp.net

+4
source share
3 answers

I recommend using Rewriter IIS URLs with the following rule:

<rewrite> <rules> <rule name="Rewrite Tab" stopProcessing="true"> <match url="^([a-z0-9/]+)/tabid/([0-9]+)/([a-z0-9/]+)$" ignoreCase="true"/> <action type="Rewrite" url="default.aspx?tabid={R:1}"/> </rule> </rules> </rewrite> 

It will rewrite

/ Category / Subcategory / Tabet / 123 / Default

to

/default.aspx?tabid=123

You can also change the internal DNN rewriting rules.

0
source

I thought your site in the 4.0 Framework is correct? go to iis and the site’s application pool installed in the classic and not integrated (managed pipeline mode :). then go to your site in IIS and open the "Mapping handlers" section and add "Script Map Wildcard ...". Request-path = * and executables = 'C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ aspnet_isapi.dll "loaproper the location of this file, then restart IIS and start your site.

Hope this helps you ....

+1
source
0
source

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


All Articles