Rewrite rule sharing _win server for IIS under Hdwiki 5.1

Source: Internet
Author: User
first, Attention matters:

1, the function of the server environment has special requirements, independent host users need to add the corresponding Rewrite rules to the WEB server, so require server permissions to use. For a virtual host user, you need to consult your space service provider: whether the space supports Rewrite and whether it supports file resolution in the Site Directory. htaccess, only if these two conditions are met, the URL static function will not take effect.
2, open the URL after static, if your server environment does not support or has not been configured, access to these links will appear "Web page can not display" error message, Hdwiki will not be able to access. When an inaccessible phenomenon occurs, please enter the admin background, turn off URL static function, the website can return to normal state.

ii. settings for the IIS environment

URL static functionality is subject to the Hdwiki server environment, before you turn on this feature, please select the appropriate environment configuration method according to your WEB server environment. Incorrect settings may cause the server to fail to start or not function.
IIS Web Server (ISAPI rewrite version 3.0) (Standalone host user) Please download the ISAPI rewrite 3.0 version (download http://www.jb51.net/softs/41171.html here), install.

The following rules are written to the IIS configuration file Httpd.ini, for example:

[Isapi_rewrite]
Cacheclockrate 3600
Repeatlimit 32
Rewriterule ^/(. *) \. (htm|html|shtml|tpl|asp|jsp|php|do) $/index\.php\?$1

Hdwiki is the root directory:

The rules for opening all are as follows:

Rewriterule ^/(. *) \. (htm|html|shtml|tpl|asp|jsp|php|do) $/index\.php\?$1

Open the rewrite rule with "http://mydomain/wiki/entry name" as follows:

Rewriterule ^/baike/wiki/(. *) $/baike/index\.php\?doc-innerlink-$1

Hdwiki for subdirectories:
such as Hdwiki in the directory named "Baike"

The rules for opening all are as follows:

Rewriterule ^/baike/(. *) \. (htm|html|shtml|tpl|asp|jsp|php|do) $/baike/index\.php\?$1

Open the rewrite rule with "http://mydomain/wiki/entry name" as follows:

Rewriterule ^/baike/wiki/(. *) $/baike/index\.php\?doc-innerlink-$1

For the background need to do the following diagram settings:

Rewrite rules for IIS under Hdwiki

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.