加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > wordpress > 正文

WordPress 伪静态规则,IIS下httpd.ini代码

发布时间:2020-12-14 14:19:09 所属栏目:wordpress 来源:网络整理
导读:WordPress 伪静态规则,IIS下httpd.ini代码 一个httpd.ini文件 ,里面写入代码 [ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 # 解决中文tag问题 RewriteRule /tag/(.*) /index.php?tag=$1 # sitemapxml RewriteRule /sitemap.xml /si

WordPress 伪静态规则,IIS下httpd.ini代码

一个httpd.ini文件 ,里面写入代码

[ISAPI_Rewrite]

# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

# 解决中文tag问题

RewriteRule /tag/(.*) /index.php?tag=$1

# sitemapxml

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]

本人测试完全ok tag可以中文化 目录可以, 所有的完全可以。目前最完美的方法。不象有的要不支持文章,就不支持tag了

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读