How to install the Apache pseudo-static plug-in IIS

Source: Internet
Author: User
This article describes how to install the Apache pseudo-static plug-in IIS. For more information, see Apache pseudo-static.

Apache and IIS have their own pseudo-static operation methods. what should I do if I need to use the pseudo-static operation method for the PHP program in Servers2003_IIS? Install the rewrite plug-in package.

1. download the rewrite plug-in package, which usually includes httpd. ini and Rewrite. dll,

2. it is generally recommended to place the pseudo static package under the root directory of the website, and then right-click the desired pseudo static website and select the attribute, Find the ISAPI filter, add rewrite. dll, close IIS, and then enable it. the priority becomes high, indicating that the installation is successful.

3. open httpd. ini and start configuring pseudo-static
The code is as follows:
[ISAPI_Rewrite]
#3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32

# Protect httpd. ini and httpd. parse. errors files
# From accessing through HTTP
#===== The above is the default code that is not recommended to change, # for the comment ====

The code is as follows:
# RewriteRule -- pseudo static editing
# ^/Pre-domain name
#/$ Here till now
#/-- Pseudo-static -- \ -- suffix --\
RewriteRule ^/webiste/$/webiste/index \. php \

# ([A-z] +) -- Regular expression
# A () represents a $ number
#(/?) -- Indicates/dispensable
RewriteRule ^/webiste/([a-z] + )(/?) $/Webiste/$1 \

4. pseudo-static data is updated in real time, so real-time testing can be performed.
PS :( [a-z0-9] +), (/page ?) ([A-z0-9] + )(/?)

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.