解决WORDPRESS伪静态后部分文件404错误无法访问的问题
今天,给网站加了个百度网站地图插件,可安装后访问发现竟然提示404错误,文件未找到!!!FTP内却好好躺着,真是躺着也中枪!经过多重测试发现是伪静态后造成的,伪静态规则。。头大!!
注意下面规则中的红色部分,把要访问的文件做一个声明就OK了,格式照搬!
解决中文tags无法访问的问题,请参考:中文TAG404错误问题解决
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
#解决中文tag无法访问的问题
RewriteRule /tag/[^/]+)/([^/]+)/?([0-9]+)?/index.php?tag=$1&paged=$3 [L]
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /sitemap_baidu.xml /sitemap_baidu.xml [L]
RewriteRule /sitemap.html /sitemap.html [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]