wordpress3.81 tag页面伪静态后出现404

2025-02-14 04:03:28
推荐回答(1个)
回答1:

你的设置是没有错的,前提空间必须是linux系统,如果是windows主机就不一样了。你可以

新建httpd.ini文件放入代码:

[ISAPI_Rewrite]      
# Defend your computer from some worm attacks      
#RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]      
# 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 /tag/(.*) /index\.php\?tag=$1     
RewriteRule /software-files/(.*) /software-files/$1 [L]      
RewriteRule /images/(.*) /images/$1 [L]      
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]

上传网站根目录下,然后之前设置应该就没有问题了。


希望对你有帮助,不明白到洪言设博客留言 http://www.hongyanshe.com/  这是一篇文章http://www.hongyanshe.com/175.html