xiuno伪静态配置教程nginx和apache

george 2026-03-13 11:56:09 1097

nginx

  1. 在宝塔网站设置的伪静态里新增如下内容:
    location ~* \.(htm)$ {
            rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last;
        }
  2. 修改conf/conf.php,将url_rewrite_on 改成1

  3. 清理缓存

     

最新回复 (0)
  • 暂无评论
    暂无评论

您可以在 登录 or 注册 后,对此帖发表评论!

返回