专注网站主机安全!
 登录 | 注册 |  充值   
  • 网站黑链监测软件

为什么选择我们

  • 18年机房维护经验
  • 多款自研安全工具
  • 国内海外多机检测
  • 在线自动实时检测
  • 独家文件监控功能
  • 检测故障自动恢复
  • 保障全年不间断运行
  • 7*24小时技术维护

IIS环境下如何设置wordpress伪静态规则
 
发布时间:2014/1/3 23:59:35
 

  wordpress是现在最流行的免费建站系统之一,默认是动态链接的,虽然这并不影响使用。但是从更有利于优化的角度来说,当然建议设置伪静态,因为伪静态的的链接更具有层级结构关系,更有利于蜘蛛抓取。下面因尔特网络数据中心为你介绍如何在IIS环境下设置wordpress的伪静态规则。

  IIS环境下的wordpress伪静态规则,在网站根目录下新建一个httpd.ini文件并加入以下代码:

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through

RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]

最后保存即可。若设置后仍无法使用。可与我们在线技术人员联系,免费为你设置处理。

 
 
在线网页客服
点此咨询