wellcms2.0伪静态配置

跟風遠走 提交于 2020-08-06 09:44:00

目标格式 /user/login.html

  1. apache
RewriteEngine on
# Apache 2.4
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^(.*?)([^/]*).html(.*)$ index.php?$1-$2.html$3 [L]

  1. iis

  1. nginx
location / {

    if (!-e $request_filename) {

      rewrite ^((.*)/) /index.php last;

    }

}

参考:http://www.wellcms.cn/read-6.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!