Php pseudo-static IIS _ PHP Tutorial

Source: Internet
Author: User
Php pseudo-static IIS. Some Windows hosts do not support IIS. the htaccess file, which is not locally used by the apmserv server. htaccess file, which is not supported by IIS on the win host that can be configured with pseudo-static in the apmserv server environment. the htaccess file, which is not locally used by the apmserv server. for the htaccess file, use the apmserv server environment to configure pseudo-static data, you can refer to the php pseudo-static (url rewrite mod_rewrite rewrite) article, which describes in detail.

Here, we will mainly explain httpd. ini ~

Example: www.jb51.net/index.php
We want him to use www.jb51.net/index.html for direct access.
Www.jb51.net/newxx.php? = 10 [newxx. php is a detailed page of news]
We converted the pseudo-static form into www.jb51.net/new-10.html
The implementation process is as follows: httpd. ini source file

[ISAPI_Rewrite]
#3600 = 1 hour
# CacheClockRate 3600
RepeatLimit 32
# Protect httpd. ini and httpd. parse. errors files
# From accessing through HTTP
RewriteRule ^/httpd (? : \. Ini | \. parse \. errors). * [F, I, O]
RewriteRule/index.html/index. php
RewriteRule/new-(%0-9%%%%%.html $/newxx \. php \? Uid = $1 the above example shows that RewriteRule/index.html/index. php converts index. php to index.html
RewriteRule/new-(%0-9%%%%%.html $/newxx \. php \? Uid = $1 to new-101_which is the value of id1_number. html

It's easy. This pseudo-static mode is generally supported by The Space Merchants of win hosts!

Examples. htaccess file. if it is not a local file, you can use the. htaccess file on the apmserv server, and use the apmserv server environment to configure pseudo static files...

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.