美文网首页
WordPress的网站链接,如何去掉index.php和cat

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

作者: 斜杠青年小Q | 来源:发表于2022-09-03 06:58 被阅读0次

使用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?

  

相关文章

网友评论

      本文标题:WordPress的网站链接,如何去掉index.php和cat

      本文链接:https://www.haomeiwen.com/subject/fpbynrtx.html