To enhance URL friendliness and facilitate search engine indexing, many users now want to convert a long URL with a parameter program address into a short program or a static webpage URL address,
Method 1 (reprinted)
Show. aspx? Id = 3 & page = 4
Change
Show-3-4.aspx
Or
Show-3-4.html
By default, Asp.net does not take over HTML file requests. If you want to use the pseudo-static html webpage address, you must have the IIS management permission and hand over the HTML to Asp.net, or use the IIS Filter for redirection. We recommend that you select the latter because it is more efficient. The procedure is as follows:
/Files/smallmuda/urlrewriter.zip
Decompress the files in the package and configure rules in the iisurlrewriter. ini file. The default value is discuz! N Configuration, I'm lazy
Then add the IIS Filter
Address: http://nt.discuz.net/doc/setup/urlrewriter.htm
Method 2: Use Microsoft's urlrewriter and search for the content by yourself. Microsoft has the source code, but this jump must be An ASPX file. If you want to use HTM or
To redirect a directory name, Asp.net must take over all URL Processing. In this way, you can add a wildcard application ing in IIS
Select or enter c: \ windows \ Microsoft. NET \ framework \ v1.1.4322 \ aspnet_isapi.dll
Cancel the check before "check whether the file exists.
OK
After testing, the efficiency is greatly affected. Therefore, it is recommended to use method 1, which is simple, convenient, and efficient.