找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
积分等级发帖收益的说明江阴论坛帮助汇总江阴论坛管理规则(必看)江阴论坛版主招聘中江阴论坛已运行
查看: 1692|回复: 0

[WordPress] Wordpress在WIN主机IIS下设置固定链接实现真正的伪静态方法

[复制链接]
发表于 2010-6-20 11:09:58 | 显示全部楼层 |阅读模式
首页你的主机要装Rewrite 组件,现在国内很多WINDOWS主机都有装这个了。然后在httpd.ini 中加入如下代码:
  1.     [ISAPI_Rewrite]

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

  8.     RewriteRule /sitemap.xml /sitemap.xml [L]
  9.     RewriteRule /favicon.ico /favicon.ico [L]
  10.     # For file-based wordpress content (i.e. theme), admin, etc.
  11.     RewriteRule /wp-(.*) /wp-$1 [L]
  12.     # For normal wordpress content, via index.php
  13.     RewriteRule ^/$ /index.php [L]
  14.     RewriteRule /(.*) /index.php/$1 [L]
复制代码
然后在固定链接中设置为自己想要的就可以了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|江阴人家

GMT+8, 2024-4-26 16:21 , Processed in 0.016600 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表