


IIS installs the Apache pseudo-static plug-in, iisapache pseudo-static_PHP tutorial
IIS安装Apache伪静态插件,iisapache伪静态
Apache和IIS分别有自己的伪静态操作方法,那在Servers2003_IIS需要给PHP程序使用伪静态呢?安装rewrite插件包。
一、下载rewrite插件包,一般里面必须有httpd.ini和Rewrite.dll,如图:
二、一般推荐将伪静态包放至网站根目录下,然后在需要伪静态的网站右击选择属性,如图:,找到ISAPI筛选器,添加rewrite.dll,关闭IIS后再打开,发生优先级变成高,如图:
,说明安装成功了。
三、打开httpd.ini,开始配置伪静态

<span> 1</span> <span>[ISAPI_Rewrite] </span><span> 2</span> <span> 3</span> <span>#</span><span> 3600 = 1 hour</span> <span> 4</span> CacheClockRate 3600 <span> 5</span> <span> 6</span> RepeatLimit 32 <span> 7</span> <span> 8</span> <span> 9</span> <span>#</span><span> Protect httpd.ini and httpd.parse.errors files</span> <span>10</span> <span>#</span><span> from accessing through HTTP</span> <span>11</span> <span>12</span> <span>#</span><span> =====以上是默认代码建议不改,#为注释=====</span>


<span> 1</span> <span>#</span><span>RewriteRule --伪静态编辑</span> <span> 2</span> <span>#</span><span>^/ 前置为域名</span> <span> 3</span> <span>#</span><span>/$ 此处为止</span> <span> 4</span> <span>#</span><span>/ --被伪静态-- \ --后缀-- \</span> <span> 5</span> RewriteRule ^/webiste/$ /webiste/index\.<span>php\ </span><span> 6</span> <span> 7</span> <span>#</span><span>([a-z]+) --正则表达式</span> <span> 8</span> <span>#</span><span>一个()代表一个$数字</span> <span> 9</span> <span>#</span><span>(/?) --表示/可有可无</span> <span>10</span> RewriteRule ^/webiste/([a-z]+)(/?)$ /webiste/$1\

四、伪静态是实时更新的,所以可以做即时测试。
PS:([a-z0-9]+),(/page?)([a-z0-9]+)(/?)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Pseudo-static refers to the technology of accessing dynamic URL addresses by disguising them as static addresses, while hiding the PHP suffix is to modify the server configuration so that the PHP suffix is no longer displayed when accessing dynamic pages. The advantage of this is that it can enhance the security of the website and avoid being cracked, while also making it more beautiful and increasing the user experience. This article will introduce in detail how to use pseudo-static to hide the php suffix to improve the security and user experience of the website.

As we all know, optimizing the SEO of a website is a very important part of website operation. The default URLs of dynamic web systems (such as PHP) used by many websites have extensions (.php, .html, etc.), which will affect the SEO effect of the website. In order to improve the optimization effect of the website, a common practice is to change the dynamic URL to a pseudo-static URL to hide the extension name and improve the user experience and search engine ranking of the website. This article will take "pseudo-static hidden php suffix" as the theme, introduce how to achieve this optimization in PHP websites, and

Improve website security: Pseudo-static rules implement PHP suffix hiding. With the development of the Internet, website security issues have become increasingly prominent, including the prevention of malicious attacks and the protection of user data. An effective measure is to hide the PHP suffix through pseudo-static rules, which helps improve the security of the website and protect user privacy. In achieving this goal, we need to use some specific code examples to demonstrate how to achieve PHP suffix hiding. First, we need to understand what pseudo-static rules are. Pseudo-static is a method of converting dynamic web page links into

With the rapid development of the Internet, website construction has attracted more and more attention. As we all know, optimizing the SEO of a website can improve the ranking and traffic of the website, and pseudo-static is an integral part of the SEO optimization of the website. In this article, we will use ThinkPHP6 to implement pseudo-static and further explore the optimization and implementation process of pseudo-static. What is Pseudo-Static state? Before explaining pseudo-static implementation, let’s first understand what pseudo-static is. Pseudo-static is a method of rewriting the URL address of a web page to make it appear

Detailed explanation of how to turn off pseudo-static code in PHP With the continuous development of website development, pseudo-static code has become an important part of optimizing website links and improving user experience. Sometimes, we also need to turn off pseudo-static code, perhaps for debugging or other needs. In this article, we will discuss in step-by-step detail how to turn off pseudo-static code in PHP and provide concrete code examples. Understanding pseudo-static code First, let us briefly understand what pseudo-static code is. Pseudo-static code refers to the use of URL rewriting technology to convert dynamic

In the current era of rapid changes in network technology, the security and stability of websites have attracted more and more attention. Among them, hiding the real technical framework of the website has become one of the focuses of many webmasters. Pseudo-static technology is a commonly used method that can effectively improve the security of a website and help prevent the site from being attacked by malicious programs such as crawlers. This article will delve into how to correctly hide the php suffix in pseudo-static technology and provide specific code examples. 1. The concept of pseudo-static. Pseudo-static, that is, pseudo-static, refers to hiding the website in the URL address.

Title: Tips for turning off pseudo-static code in PHP Pseudo-static code refers to a technique that makes dynamically generated URLs look like static page links. When developing websites using PHP, sometimes we encounter situations where we need to turn off pseudo-static code, such as during the debugging phase or to solve some URL redirection problems. This article will share some tips for turning off pseudo-static code and provide specific code examples. 1. The method to turn off the pseudo-static code is to turn off the .htaccess file and find .ht in the root directory of the website.

Title: From Principle to Practice: Detailed explanation of pseudo-static hidden PHP suffix In network development, in order to improve the security of the website and enhance the user experience, hiding the file extension in the URL has become a common operation. Among them, hiding the PHP file suffix is a commonly used technical means, which can improve the security of the website, increase the aesthetics of the website, and is also beneficial to search engine optimization. This article will explain in detail the principle and practical operation of pseudo-static hiding PHP suffix, and provide specific code examples. 1. The principle of pseudo-static hiding PHP suffix pseudo-static
