织梦的安装方法很简单,就不多说了。
Nginx伪静态
rewrite “^/list-([0-9]+)\.html$” /plus/list.php?tid=$1 last;
rewrite “^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$” /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;
rewrite “^/i-wz-([0-9]+)\.html$” /plus/view.php?arcID=$1 last;
rewrite “^/i-wz-([0-9]+)-([0-9]+)\.html$” /plus/view.php?aid=$1&pageno=$2 last;
rewrite “^/plus/list-([0-9]+)\.html$” /plus/list.php?tid=$1 last;
rewrite “^/plus/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$” /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;
rewrite “^/plus/i-wz-([0-9]+)\.html$” /plus/view.php?arcID=$1 last;
rewrite “^/plus/i-wz-([0-9]+)-([0-9]+)\.html$” /plus/view.php?aid=$1&pageno=$2 last;
rewrite “^/tags.html$” /tags.php last;
rewrite “^/tag-([0-9]+)-([0-9]+)\.html$” /tags.php?/$1/$2/ last;
在Nginx配置文件server段添加以下内容
#防止模板被盗
location ~*^/templets {
rewrite ^/templets/(.*)$ / permanent;
}
恢复数据后的账号密码admin
- 最新
- 最热
只看作者