Home Backend Development PHP Tutorial Specific operation pictures and text of installing Apache pseudo-static plug-in in IIS_PHP tutorial

Specific operation pictures and text of installing Apache pseudo-static plug-in in IIS_PHP tutorial

Jul 21, 2016 pm 03:01 PM
apache iis specific and Graphics and text Install plug-in operate have of my own static

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

www.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 of this Website
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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency Apr 30, 2024 pm 12:27 PM

PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency

Integration and expansion of golang function concurrency control and third-party libraries Integration and expansion of golang function concurrency control and third-party libraries Apr 25, 2024 am 09:27 AM

Integration and expansion of golang function concurrency control and third-party libraries

The evasive module protects your website from application layer DOS attacks The evasive module protects your website from application layer DOS attacks Apr 30, 2024 pm 05:34 PM

The evasive module protects your website from application layer DOS attacks

How to conduct concurrency testing and debugging in Java concurrent programming? How to conduct concurrency testing and debugging in Java concurrent programming? May 09, 2024 am 09:33 AM

How to conduct concurrency testing and debugging in Java concurrent programming?

How to add a server in eclipse How to add a server in eclipse May 05, 2024 pm 07:27 PM

How to add a server in eclipse

Application of algorithms in the construction of 58 portrait platform Application of algorithms in the construction of 58 portrait platform May 09, 2024 am 09:01 AM

Application of algorithms in the construction of 58 portrait platform

How to use Fail2Ban to protect your server from brute force attacks How to use Fail2Ban to protect your server from brute force attacks Apr 27, 2024 am 08:34 AM

How to use Fail2Ban to protect your server from brute force attacks

How to deploy and maintain a website using PHP How to deploy and maintain a website using PHP May 03, 2024 am 08:54 AM

How to deploy and maintain a website using PHP

See all articles