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] + )(/?)