您的位置 首页 > 数码极客

IIS伪静态如何去掉index开头

大庆seo工程师在通过“/%category%/%post_id%.html”命令做伪静态时,发现无法生效,经过研究

在Win2003+IIS6环境下得通过如下方法才能实现WordPress的固定连接。

1.安装ISAPI_Rewrite

伪静态组件包:http://pan.baidu.com/s/1jGG5YRG

2.在网站根目录新建文件,输入以下内容并保存:

[ISAPI_Rewrite]

# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

# Protect and files

# from accessing through HTTP

# Rules to ensure that normal content gets through?0?2

RewriteRule /software-files/(.*) /software-files/$1 [L]

RewriteRule /images/(.*) /images/$1 [L]

RewriteRule [L]

RewriteRule [L]

# For file-based wordpress content . theme), admin, etc.

RewriteRule /wp-(.*) /wp-$1 [L]

# For normal wordpress content, via index.php

RewriteRule ^/$ [L]

RewriteRule /(.*) /$1 [L]

责任编辑: 鲁达

1.内容基于多重复合算法人工智能语言模型创作,旨在以深度学习研究为目的传播信息知识,内容观点与本网站无关,反馈举报请
2.仅供读者参考,本网站未对该内容进行证实,对其原创性、真实性、完整性、及时性不作任何保证;
3.本站属于非营利性站点无毒无广告,请读者放心使用!

“IIS伪静态如何去掉index开头”边界阅读