Apache and IIS have their own pseudo static operation methods, that in the Servers2003_iis need to use pseudo static PHP program? Install the rewrite plug-in package.
First, download rewrite plug-in package, the general inside must have Httpd.ini and Rewrite.dll, as shown:
two or one it is recommended to place a pseudo static package in the root directory of the Web site, and then right-click the Select attribute on a site that requires a pseudo static
Figure:Locate the ISAPI filter, add Rewrite.dll, turn off IIS, and then turn on, and the priority becomes high,
As shown in figure:
, indicating that the installation was successful.
Third, open Httpd.ini, start configuration pseudo static
Copy Code code as follows:
[Isapi_rewrite]
# 3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
# Protect Httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# ===== above is the default code recommendations do not change, #为注释 =====
Copy Code code as follows:
#RewriteRule--pseudo-static editing
#^/front to Domain
#/$ so far
#/--a pseudo static----suffix--
rewriterule ^/webiste/$/webiste/index.php
# ([a-z]+)--Regular expression
#一个 () represents a $ digital
#(/?) --Express/Dispensable
rewriterule ^/webiste/([a-z]+) (/?) $/webiste/$1
Four, pseudo static is updated in real time, so you can do instant testing.
PS: ([a-z0-9]+), (/page?) ([a-z0-9]+) (/?)