wordpress 5.3 默认采用的固定连接如下:

http://example.com/?p=N

这种连接有点丑,

通过mod_rewrite设置固态连连接,我试了下怎么都不生效

PATHINFO: “比较好的链接”

PATHINFO类型的链接地址和mod_rewrite类型的地址看起来很像,唯一的区别是在前面多了/index.php,如下:

http://example.com/index.php/yyyy/mm/dd/post-name/

 

官方文档

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *