search
HomeCMS TutorialDEDECMSHow to configure pseudo-static in IIS

How to configure pseudo-static in IIS

IIS configuration pseudo-static tutorial

Recommended learning: 梦Weavercms

Do SEO optimization All my friends know that search engines like to include static pages. Therefore, the first step in website optimization is to make the website URL static. Of course, there are many ways to make URL static, such as generating static pages in the background of website programs, 404 pseudo-static, and using URL rewriting components to static pages. Compared with the previous two methods, using URL rewriting components to create pseudo-static websites is a more popular method now.

ISAPI_Rewrite is a component with powerful URL rewriting function. Its function is similar to Apache's mod_Rewrite, but it is used on Microsoft's Internet Information Services (IIS) platform. Supports websites developed using ASP, PHP, .NET and other codes. Versions after ISAPI_Rewrite3 can well support the rule setting statement of .htaccess files, so it can be used well by both original IIS users and Apache users. .

My site (Shared Century) mainly uses ISAPI_Rewrite for 301 redirection. Due to column adjustments, some pages such as www.2ky.cn/d/ need to be redirected to down.2ky.cn, 2ky.cn redirection Go to www.2ky.cn and set up 301 permanent redirection in batches through ISAPI_Rewrite. This can inform the search engine that the original web page address has changed, so that it can update the index, which is beneficial to the site's SEO and improves its weight.

Take the isapi_rewrite 3.1.0.75 cracked version provided for download on this site as an example:

1. Download the installation package:

isapi_rewrite 3.1.0.75 cracked version

This version is a cracked version that supports multi-site and .htaccess. It contains a crack patch. Please follow the instructions.

2. Start the installation:

1. Unzip and get the ISAPI_Rewrite3_0075_cra folder (including cracked files and installation methods), ISAPI_Rewrite3_0079.msi installation file;

2. Double-click ISAPI_Rewrite3_0079.msi to install, use the default selection, and click Next until completed (the installation process will automatically restart IIS).

3. After completion, copy the ISAPI_Rewrite.dll and ISAPI_RewriteSnapin.dll files under the ISAPI_Rewrite3_0075_cra file to the ISAPI_Rewrite installation directory and overwrite the original files (if the prompt file is occupied, delete the original files first. Copy it again).

4. Find the httpd.conf file in the installation directory. Enter the following:

RegistrationName= coldstar

RegistrationCode= 2EAD-35GH-66NN-ZYBA

5. Restart IIS and the installation is completed.

3. Configuration:

1. After the installation is completed, you will see the label of the ISAPI_Rewrite component in the label of each site property:

How to configure pseudo-static in IIS

2. Upload the .htaccess file with written rules to the root directory of the site that needs to be redirected;

3. Right-click .htaccess, select the "Security" tab, and add the IIS_WPG user (Network service users can also do this), give read and run permissions, as shown in the figure:

How to configure pseudo-static in IIS

4. Everything is OK, restart IIS!

5. Check the ISAPI_Rewrite tag of the set site. The rules have been correctly identified, and then enter the url to test!

How to configure pseudo-static in IIS

The above is the detailed content of How to configure pseudo-static in IIS. For more information, please follow other related articles on the PHP Chinese website!

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
Windows安装nginx1.10.1反向代理访问IIS网站的方法Windows安装nginx1.10.1反向代理访问IIS网站的方法May 23, 2023 pm 05:40 PM

首先去官网下载软件包,解压,路径最好不要有中文nginx配置的路径问题由于在windows下文件路径可以用”\”,也可以用”\\”,也可以用”/”作为路径做分隔符。但”\”最容易引发问题,所以要尽量避免使用。不要添加path,否则会引发错误,config文件路径找不到比如我解压在e盘cmd命令定位到nginx.exe所在文件夹cde:\worksoftware\nginx-1.10.1然后执行,首先保证nginx.conf文件配置没问题其实nginx最重要的和最主要的工作就是配置文件,其他没什么

进程无法访问 Windows 11 / 10 上的文件错误修复进程无法访问 Windows 11 / 10 上的文件错误修复May 12, 2023 pm 07:10 PM

众所周知,当任何文件正在使用时,任何其他进程都无法访问/更改它。在这种情况下,当一个进程试图打开一个文件时,操作系统会锁定该文件以防止它被另一个进程修改。“该进程无法访问该文件,因为它正被另一个进程使用”是许多用户在其Windows计算机上观察到的此类错误消息。已知此错误发生在不同版本的WindowsOS和WindowsServer中。通常,在用户的WindowsPC上使用Netsh命令期间会观察到此错误消息。发生此错误的另一种情况是尝试在Internet信息服务(IIS)M

iis在linux上可以用吗iis在linux上可以用吗Mar 23, 2023 am 09:24 AM

iis不可以在linux上使用,因为iis是由微软公司提供的基于运行Microsoft Windows的互联网基本服务,是在Windows操作系统平台下开发的,所以限制了它只能在Windows操作系统下运行。

php站用iis乱码而apache没事怎么解决php站用iis乱码而apache没事怎么解决Mar 23, 2023 pm 02:48 PM

​在使用 PHP 进行网站开发时,你可能会遇到字符编码问题。特别是在使用不同的 Web 服务器时,会发现 IIS 和 Apache 处理字符编码的方法不同。当你使用 IIS 时,可能会发现在使用 UTF-8 编码时出现了乱码现象;而在使用 Apache 时,一切正常,没有出现任何问题。这种情况应该怎么解决呢?

iis应用程序池怎么打开iis应用程序池怎么打开Apr 09, 2024 pm 07:48 PM

要在 IIS 中打开应用程序池:1. 打开 IIS 管理器;2. 导航到 "应用程序池" 节点;3. 右键单击目标应用程序池并选择 "管理";4. 单击 "高级设置" 选项卡;5. 应用程序池配置可在此查看和修改。

iis无法启动怎么解决iis无法启动怎么解决Dec 06, 2023 pm 05:07 PM

iis无法启动的解决办法:1、检查系统文件完整性;2、检查端口占用情况;3、启动相关服务;4、重新安装IIS;5、重置Windows系统;6、检查元数据库文件;7、检查文件权限;8、更新操作系统和应用程序;9、避免安装过多不必要的软件;10、定期备份重要数据。详细介绍:1、检查系统文件完整性,运行系统文件检查工具,检查系统文件的完整性等等。

iis无法启动解决方法iis无法启动解决方法Oct 24, 2023 pm 03:04 PM

解决方法:1、检查IIS服务是否已安装;2、检查依赖服务;3、检查端口冲突;4、检查配置文件和权限;5、重新注册IIS相关组件;6、检查日志文件。

iis的日志文件可以删除吗怎么删iis的日志文件可以删除吗怎么删Apr 09, 2024 pm 07:45 PM

是的,可以删除 IIS 日志文件。删除方法包括:通过 IIS 管理器选择网站或应用程序池,然后在“日志文件”选项卡中删除相应日志文件。使用命令提示符转到日志文件存储目录(通常为 %SystemRoot%\System32\LogFiles\W3SVC1),并使用 del 命令删除日志文件。使用第三方工具(例如 Log Parser)自动删除日志文件。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool