How to set up dz! Pseudo-static URL address for NT forum

Source: Internet
Author: User
Tags add filter iis ini modify net root directory advantage
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)



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.