Custom pseudo-static address httpd. ini

Source: Internet
Author: User
Currently, many servers use IIS as the server system and install the Rewrite module. This system provides excellent support for PHP and ASP, so it is widely used, many space vendors have also opened custom httpd. ini permission (if you do not have the permission to open it, let's talk about it through httpd. ini User-Defined pseudo-static address method (if you use Apache as the WEB service system, see: Virtual Host, server custom pseudo-static address. htaccess. If you do not know what web service components are used by your server or virtual host, log on to the background of the Forum, on the homepage of the Forum background, you can see the web service components you are using at a glance, even the component version .).
Open notepad and add code to it.
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On

The following pseudo-static rules are common to httpd. ini and. htaccess.
If the static directory is-htm-, add a line of code below:
RewriteRule ^ (. *)-htm-(. *) $ 1.php? $2

Some servers may be? The Code is as follows:
RewriteRule ^ (. *)-htm-(. *) $1. php \? $2

If the static directory is-and the static directory extension is. html, add a line of code below:
RewriteRule ^ (. *)/([a-zA-Z] +)-(. *. html. *) $1/$ 2.php? $3

Some servers may be? The Code is as follows:
RewriteRule ^ (. *)/([a-zA-Z] +)-(. *. html. *) $1/$2. php \? $3

If the static directory is/and the static directory extension is. html, add a line of code below:
RewriteRule ^ (. *)/([a-zA-Z] +)/(. *. html. *) $1/$ 2.php? $3

Some servers may be? The Code is as follows:
RewriteRule ^ (. *)/([a-zA-Z] +)/(. *. html. *) $1/$2. php \? $3

PW graph-free mode three support (For details, refer to index. php under the simple Directory, which provides rules that may not be available), the Code is as follows:
RewriteRule ^ (. *)/simple/([a-z0-9 \ _00000000.html. *) $1/simple/index. php? $2

Some servers may be? The Code is as follows:
RewriteRule ^ (. *)/simple/([a-z0-9 \ _00000000.html. *) $1/simple/index. php \? $2

Finally, save the file named httpd. ini and upload it to the root directory of the website.
If you do not understand the modification, follow the instructions in the post.

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.