PHP pseudo-Static IIS chapter _php instance

Source: Internet
Author: User
Some of the win host IIS does not support. htaccess files, which I mean here is not local local words with Apmserv server can use. htaccess file, configure pseudo-static with Apmserv server environment can see PHP pseudo-static (URL rewrite mod_ Rewrite rewrite) This article is very detailed.

Here we mainly explain httpd.ini nonsense don't say directly see effect ~

Example: www.php.net/index.php
We want him to use www.php.net/index.html to direct access.
www.php.net/newxx.php?=10 [newxx.php is the detailed page of the news]
We turn him pseudo-static into a www.php.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 can be seen rewriterule/index.html/index.php is to convert index.php to Index.html
rewriterule/new-([0-9]+). html$/newxx\.php\?uid=$1 converted to new-10{this 10 is id= value}.html

It's simple. This pseudo-static general win host space quotient basic support!

  • Related Article

    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.