WordPress伪静态规则httpd.ini

WordPress伪静态规则httpd.ini,第1张

概述请直接新建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 throughRewriteRule /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] 

请直接新建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]

总结

以上是内存溢出为你收集整理的WordPress伪静态规则httpd.ini全部内容,希望文章能够帮你解决WordPress伪静态规则httpd.ini所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zz/1024842.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-23
下一篇2022-05-23

发表评论

登录后才能评论

评论列表(0条)

    保存