WordPress的网站链接,如何去掉index.php和category?

使用WordPress搭建网站时,如果你是基于IIS服务器搭建的,肯定会遇到这个问题,就是固定链接设置好后,网址会出现烦人的index.php和category这两个关键字。

  

举个例子,博客的分类是wordpress,博客的固定链接是how-to-create-wordpress.html。那么完整的地址就是
https://yourwebsite/wordpress
https://yourwebsite/wordpress/blog1.html
  

这么看着多友好,一目了然就知道博客在什么分类下,博客的内容是什么?结果非要搞成下面这样。感觉就一个字:low
https://yourwebsite/index.php/category/wordpress
https://yourwebsite/index.php/category/wordpress/blog1.html

  
  

传送门:
WordPress的网站链接,如何去掉index.php和category?

  

posted @ 2022-09-02 22:24  斜杠青年小Q  阅读(105)  评论(0编辑  收藏  举报