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

WordPress伪静态规则httpd.ini

发布时间:2020-12-14 14:41:55 所属栏目:wordpress 来源:网络整理
导读:请直接新建1个txt文档,再复制虚横线之下的代码内容,粘贴到txt文档里面保存后,再修改文档文件名为httpd.ini就可以了。将httpd.ini文件直接上传到菜菜互联FTP空间的WEB文件夹根目录下,最后在固定链接中设置为自己想要的即可使用。经过菜菜互联的空间测试暂

请直接新建1个txt文档,再复制虚横线之下的代码内容,粘贴到txt文档里面保存后,再修改文档文件名为httpd.ini就可以了。将httpd.ini文件直接上传到菜菜互联FTP空间的WEB文件夹根目录下,最后在固定链接中设置为自己想要的即可使用。经过菜菜互联的空间测试暂时没有错误,其他空间商的服务器不一定能正常使用。

注意:这个伪静态规则文件仅适合WordPress博客使用!

--------------------------------------------------------------------------------------------------------------------------------------------------------

[ISAPI_Rewrite]

# 3600 = 1 hourCacheClockRate 3600RepeatLimit 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.phpRewriteRule ^/$ /index.php [L]RewriteRule /(.*) /index.php/$1 [L]

(编辑:李大同)

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

    推荐文章
      热点阅读