第一步:进入博客后台-->点击设置-->点击永久链接将是否使用地址重写功能启用,并将自定义文章路径设置为个性化定义,内容为:/{cid}.html第二步:在宝塔中点击网站设置,点击伪静态,将以下代码复制进去if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; }参考文章:https://blog.csdn.net/fengyuesong/article/details/108034304https://zhuanlan.zhihu.com/p/115261386 Last modification:January 18th, 2022 at 07:42 pm © The copyright belongs to the author