> 原创 > IIS8.0修改web.config去掉WordPress固定链接里面的index.php

IIS8.0修改web.config去掉WordPress固定链接里面的index.php

WordPress固定链接设置后,总会出现index.php!不知道如何取消掉?
希望我分享的这个代码可以帮到你,只需要把它复制到web.config文件里面就可以了,我的博客是这么做的,希望可以帮到需要的朋友

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="wordpress" patternSyntax="Wildcard">
  7. <match url="*"/>
  8. <conditions>
  9. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
  10. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
  11. </conditions>
  12. <action type="Rewrite" url="index.php"/>
  13. </rule></rules>
  14. </rewrite>
  15. </system.webServer>
  16. </configuration>

典型的夜猫子,失眠者。爱好LOL、徒步、旅行、拍照、音乐、小球。E-mail:[email protected]

IIS8.0修改web.config去掉WordPress固定链接里面的index.php:等您坐沙发呢!

发表评论

表情
还能输入210个字

了解 李英杰害虫 的更多信息

立即订阅以继续阅读并访问完整档案。

Continue reading