wordpress伪静态设置方法

有一部分同学在设置 wordpress 插件以后,出现链接不能访问的情况,请按照以下办法解决:
以下方法适用于 Windows 平台下的程序,如果是 Linux 平台请参考2楼的帖子

方法一:新建一个记事本,将以下文件粘贴到记事本里面,然后保存为 httpd.ini ,并上传到网站根目录。

  1. [ISAPI_Rewrite]
  2. # Defend your computer from some worm attacks
  3. #RewriteRule .*(?:global.asa|default.ida|root.exe|..).* . [F,I,O]
  4. # 3600 = 1 hour
  5. CacheClockRate 3600
  6. RepeatLimit 32
  7. # Protect httpd.ini and httpd.parse.errors files
  8. # from accessing through HTTP
  9. # Rules to ensure that normal content gets through
  10. RewriteRule /tag/(.*) /index.php?tag=$1
  11. RewriteRule /software-files/(.*) /software-files/$1 [L]
  12. RewriteRule /images/(.*) /images/$1 [L]
  13. RewriteRule /sitemap.xml /sitemap.xml [L]
  14. RewriteRule /favicon.ico /favicon.ico [L]
  15. # For file-based wordpress content (i.e. theme), admin, etc.
  16. RewriteRule /wp-(.*) /wp-$1 [L]
  17. RewriteRule /wap(.*) /wap$1 [L]
  18. # For normal wordpress content, via index.php
  19. RewriteRule ^/$ /index.php [L]
  20. RewriteRule /(.*) /index.php/$1 [L]
本文链接:https://www.dnwfb.com/459.html,转载请注明出处。
0

评论0

没有账号? 注册  忘记密码?