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



 

相关文章:

  • 2021-11-08
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2021-07-05
  • 2021-04-14
  • 2021-08-10
相关资源
相似解决方案