Implementation of Discuz pseudo-static in Winnt+iis environment

Source: Internet
Author: User

The first installation of Discuz under IIS was unsuccessful. Find Discuz help look, you need to set the permissions for several directories to 777 under the **ix system. And now it's the win system. Set the related directories and config.inc.php to the user group with write permission to install successfully.

The subsequent discuz pseudo static settings were smooth. According to the information found, a version of the ISAPI Rewrite for IIS was downloaded and the Isapi_rewrite.dll and Httpd.ini two files were extracted. Put the Isapi_rewrite.dll in a directory (assuming I'm in the F:\rewrite). Then in IIS, right-click the site → properties → isapi filter → add, specify the location of the Isapi_rewrite.dll in the pop-up dialog box and enter the filter name, as shown in the following figure:


Restart IIS after setting up, check the ISAPI Filters tab of the site's property page, and, if this is the following figure, show that Isapi_rewrite.dll loaded successfully:


The next task is to set up Httpd.ini, which needs to be placed in the root directory of the Discuz installation directory. Open the Httpd.ini and add the Discuz official rewrite rules:

[Isapi_rewrite]
# 3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
# Protect Httpd.ini and Httpd.parse.errors files
# from accessing through HTTP rewriterule/searchcompany_ (\d+) \.html/searchcompany\.aspx\?npage=$1 [N,I]
# Here is the resolution of the Post list installation root directory
Rewriterule ^ (. *)/archiver/([a-z0-9\-]+\.html) $ $1/archiver/index\.php\?$2
Rewriterule ^ (. *)/forum-([0-9]+)-([0-9]+) \.html$ $1/forumdisplay\.php\?fid=$2&page=$3
Rewriterule ^ (. *)/thread-([0-9]+)-([0-9]+) – ([0-9]+) \.html$ $1/viewthread\.php\?tid=$2&extra=page\%3d$4& Page=$3

Then enter the forum background, open the relevant pseudo static settings can be.

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.