部署环境
Nginx/Apache
建议PHP7.4
Mysql5.6+
安装教程
将52DH Pro压缩包上传到网站运行根目录
配置伪静态规则
访问域名安装 按照页面引导,填写必要的信息
注意:系统核心信息必须实际填写,填写完后需牢记相关信息
后台地址:http(s)://域名/你安装时设置的后台入口
默认账号:admin
默认密码:123456

Nginx伪静态规则
rewrite ^/index.html$ /index.php last;
rewrite ^/about.html$ /about.php last;
rewrite ^/search.html$ /search.php last;
rewrite ^/ranking.html$ /ranking.php last;
rewrite ^/apply.html$ /apply.php last;
rewrite ^/404.html$ /404.php last;
rewrite ^/category-([1-9]+[0-9]*).html$ /category.php?id=$1 last;
rewrite ^/category-([a-zA-Z]+).html$ /category.php?alias=$1 last;
rewrite ^/site/([1-9]+[0-9]*).html$ /site.php?id=$1 last;
rewrite ^/site/([a-zA-Z]+).html$ /site.php?alias=$1 last;
rewrite ^/article.html$ /article.php last;
rewrite ^/article-list-([1-9]+[0-9]*).html$ /article_list.php?id=$1 last;
rewrite ^/article-([1-9]+[0-9]*).html$ /article_show.php?id=$1 last;
rewrite ^/img/favicon/(.*)$ /favicon.php?url=$1 last;
rewrite ^/img/favicon/(.*).png$ /favicon.php?url=$1 last;
rewrite ^/img/preview/(.*).png$ /preview.php?url=$1 last;
location ~ “^/img/favicon/([^/]+)/?.png$” {
try_files /$uri /$uri/ /favicon.php?url=$1;
}
location ~ “^/img/preview/([^/]+)/?.png$” {
try_files /$uri /$uri/ /preview.php?url=$1;
}
注意:其他环境伪静态规则自行查阅安装包内文件
本站永久VIP限时特价9.9元开通
© 版权声明
本站所有资源均为互联网收集或用户投稿,仅供研究学习,切勿商用以及违法使用。如若本站内容侵犯了您的权益,请及时联系我们予以删除!
THE END










暂无评论内容