说明
刚淘到一个挺清爽的网址导航程序,本地和线上都跑通了,打包步骤不折腾,三分钟就能上线。
1. 把整包源码丢到网站根目录
2. 把 dkewl.sql 导进 MySQL,字符集选 utf8mb4,别踩坑
3. 打开 config.php,填好数据库名、账号、密码、端口,保存
4. 伪静态规则贴进 Nginx,reload 一下,Apache 用户就改 .htaccess,效果一样
“`
rewrite ^/index.html$ /index.php;
rewrite ^/about.html$ /about.php;
rewrite ^/top.html$ /top.php;
rewrite ^/search.html$ /search.php;
rewrite ^/apply.html$ /apply.php;
rewrite ^/404.html$ /404.php;
rewrite ^/sort([1-9]+[0-9]*).html$ /sort.php?id=$1;
rewrite ^/sort([a-zA-Z]+).html$ /sort.php?alias=$1;
rewrite ^/site_([1-9]+[0-9]*).html$ /site.php?id=$1;
“`
5. 浏览器敲域名,能打开说明成功
6. 后台默认入口:你的域名/admin/login.php
7. 首次登录账号 admin,密码 123456,进去第一件事就是把密码改了,别偷懒
整套流程亲测不报错,拿去就能用,二开也方便。
演示图

感谢您的来访,获取更多精彩文章请收藏本站。






















暂无评论内容