Share iis rewrite Rules in HDwiki 5.1

Source: Internet
Author: User

I. Notes:

1. This function has special requirements on the server environment. Independent host users need to add corresponding Rewrite rules to the Web server. Therefore, they need server permissions for use. For VM users, you need to consult your space service provider: whether the space supports Rewrite and whether the site directory is supported. the file parsing of htaccess takes effect only when the two conditions are met.
2. After the URL is static, if your server environment does not support or is not configured, the "webpage cannot be displayed" error message will appear when you access these links, and HDwiki will not be accessible normally. If the website cannot be accessed, go to the management background and disable the URL static function to restore the website to normal.

Ii. IIS Environment Settings

The URL static function is restricted by the server environment where HDwiki is located. Before enabling this function, select the environment configuration method based on your Web server environment. Incorrect settings may cause the server to fail to start or the function to be invalid.
IIS Web Server (ISAPI rewrite 3.0) (standalone host user) download ISAPI rewrite 3.0 (here download http://www.jb51.net/softs/41171.html) to install.

3. The following rules should be 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

Where hdwiki is the root directory:

All enabled rules are as follows:

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

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

RewriteRule ^/javaske/wiki/(. *) $/javaske/index \. php \? Doc-innerlink-$1

When hdwiki is a subdirectory:
For example, hdwiki is in the directory named "Ke ".

All enabled rules are as follows:

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

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

RewriteRule ^/javaske/wiki/(. *) $/javaske/index \. php \? Doc-innerlink-$1

Set the backend as follows:

Iis rewrite Rules in 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.