Apache and IIS each have their own pseudo-static operation methods. So, do you need to use pseudo-static for PHP programs in Servers2003_IIS? Install the rewrite plug-in package.
1. Download the rewrite plug-in package. Generally, it must contain httpd.ini and Rewrite.dll, as shown in the picture:
2. It is generally recommended to place the pseudo-static package in the root directory of the website, then right-click on the website that requires pseudo-static and select Properties , as shown in the figure: , find the ISAPI filter, and add rewrite .dll, close IIS and then open it again, the priority becomes high, as shown in the figure: , indicating that the installation was successful.
3. Open httpd.ini and start configuring pseudo-static
Copy the code 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 and it is recommended not to change it. # is a comment =====
Copy the code The code is as follows:
#RewriteRule --Pseudo-static editing
#^/ Prefixed with domain name
#/$ Until here
#/ --Pseudo-static-- --Suffix--
RewriteRule ^/webiste/$ /webiste/index.php
#([a-z]+) --Regular expression
#A () represents a $number
#(/?) -- means/dispensable
RewriteRule ^/webiste/([a-z]+)(/?)$ /webiste/$1
4. Pseudo-static is updated in real time, so real-time testing can be done.
PS:([a-z0-9]+),(/page?)([a-z0-9]+)(/?)
http://www.bkjia.com/PHPjc/327961.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327961.htmlTechArticleApache and IIS each have their own pseudo-static operation methods. So, do you need to use pseudo-static for PHP programs in Servers2003_IIS? Install the rewrite plug-in package. 1. Download the rewrite plug-in package, generally...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn