wordpress的伪静态规则

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# wordpress 伪静态规则
# For tag(中文标签以及标签翻页的规则)
RewriteRule /tag/(.*)/page/(/d+)$ /index/.php/?tag=$1&paged=$2
RewriteRule /tag/(.+)$ /index/.php/?tag=$1
# For category(中文分类以及分类翻页的规则)
RewriteRule /category/(.*)/page/(/d+)$ /index/.php/?category_name=$1&paged=$2
RewriteRule /category/(.*) /index/.php/?category_name=$1
# For sitemapxml
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /sitemap_baidu.xml /sitemap_baidu.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
RewriteRule /index.htm /index.htm [L]
RewriteRule /sitemap.html /sitemap.html [L]
RewriteRule /robots.txt /robots.txt [L]
RewriteRule /logo.gif /logo.gif [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/article/(/d+)$ /article/.php/?id=$1
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/\ [L]

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/58336.html

(0)
上一篇 2021年8月9日
下一篇 2021年8月9日

相关推荐

发表回复

登录后才能评论