使用WordPress搭建網(wǎng)站時(shí),如果你是基于IIS服務(wù)器搭建的,肯定會(huì)遇到這個(gè)問題,就是固定鏈接設(shè)置好后,網(wǎng)址會(huì)出現(xiàn)煩人的index.php和category這兩個(gè)關(guān)鍵字。
??
舉個(gè)例子,博客的分類是wordpress,博客的固定鏈接是how-to-create-wordpress.html。那么完整的地址就是
https://yourwebsite/wordpress
https://yourwebsite/wordpress/blog1.html
??
這么看著多友好,一目了然就知道博客在什么分類下,博客的內(nèi)容是什么?結(jié)果非要搞成下面這樣。感覺就一個(gè)字:low
https://yourwebsite/index.php/category/wordpress
https://yourwebsite/index.php/category/wordpress/blog1.html
??
??
傳送門:
WordPress的網(wǎng)站鏈接,如何去掉index.php和category?
??