In order to enhance the friendliness of the URL, convenient search engine collection, now many users want to have a long URL with a parameter program address into a shorter program or static Web page URL address.
For example:
Will Show.aspx?id=3&page=4
Into Show-3-4.aspx Or Show-3-4.html |
Obviously, the following URLs are shorter and friendlier.
(i) discuz! An introduction to the NT default supported ASPX pseudo URL addresses.
discuz! NT supports an advantage that is useful to users: pseudo URL addresses are supported by default, for example:
For Showforum.aspx?forumid=3&page=4
You can directly access Showforum-3-4.aspx The content returned by the two is exactly the same. |
discuz! NT can do this because it takes advantage of ASP.net's capabilities to take over HTTP requests for ASPX files, and virtual host users can use the same feature to make their forum URL paths friendlier.
(ii) discuz! NT uses HTML pseudo static address.
asp.net the default is not to take over HTML file requests, if users want to use HTML pseudo static page address, you need to have IIS administrative permissions, the HTML also to ASP.net takeover, or use IIS filter for redirection, we recommend that the latter, because this is more efficient. The specific steps are as follows:
1) Download Urlrewriter filter discuz! NT Special Configuration Package
Click here to download (194KB) |
Unzip the file in the package, and the Iisurlrewriter.ini file in the package is already configured by default discuz! NT URL configuration when the site root directory
2) Modify IIS settings, add urlrewriter filter
Select your site in IIS, right-click the Select attribute, and add the IisUrlRewriter.dll to the filter you just unzipped, as shown in figure:
3 According to your needs to modify the Iisurlrewriter.ini file, if you want to take effect on the operation, please click "Start" on the taskbar-"Run"-run the "iisreset" command to restart IIS, so that the filter takes effect.
After the setting above, the
Showforum-3-4.html
The request actually turned out to be
Showforum.aspx?forumid=3&page=4
The request
4 The above steps are set up, landing forum, into the background management came to the "Global => General Options => Basic Settings", set "pseudo static URL extension" for. HTML (Note that there is an English symbol period)