您现在的位置是:首页 > cms教程 > WordPress教程WordPress教程

WordPress伪静态规则httpd.ini的写法

谷冬2025-03-27 19:06:07WordPress教程已有6人查阅

导读请直接新建1个txt文档,再复制虚横线之下的代码内容,粘贴到txt文档里面保存后,再修改文档文件名为httpd.ini就可以了。将httpd.ini文件直接上传到菜菜互联FTP空间的WEB文件夹根目录下

请直接新建1个txt文档,再复制虚横线之下的代码内容,粘贴到txt文档里面保存后,再修改文档文件名为httpd.ini就可以了。将httpd.ini文件直接上传到菜菜互联FTP空间的WEB文件夹根目录下,之后在固定链接中设置为自己想要的即可使用。
经过菜菜互联的空间测试暂时没有错误,其他空间商的服务器不一定能正常使用。
注意:这个伪静态规则文件仅适合WordPress博客使用!
[ISAPI_Rewrite]
# 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 /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]

本文标签:

很赞哦! (0)

暂无内容
暂无内容
暂无内容
暂无内容
留言与评论 (共有 0 条评论)
昵称:
匿名发表 登录账号
         
验证码: