自适应各终端站长导航网址导航源码
环境: PHP5.5左右吧+mysql
先导入数据库文件db/db.sql
再修改config.php数据库配置
然后服务器设置好伪静态规则
访问网站OK
后台是:你的域名/admin/login.php 账号:admin 密码:admin888
效果图:
规则:
Nginx伪静态规则
rewrite ^/index.html$ /index.php;
rewrite ^/about.html$ /about.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;
Apache的伪静态规则
RewriteEngine On
rewritebase /
RewriteRule ^index.\html /index\.php [L,NC]
RewriteRule ^about\.html about\.php [L,NC]
RewriteRule ^search\.html search\.php [L,NC]
RewriteRule ^apply\.html apply\.php [L,NC]
RewriteRule ^404\.html 404\.php [L,NC]
RewriteRule ^sort([0-9]+)\.html sort\.php?id=$1 [L,NC]
RewriteRule ^sort([a-zA-Z]+)\.html sort\.php?alias=$1 [L,NC]
RewriteRule ^site-([0-9]+)\.html site\.php?id=$1 [L,NC]
管理员设置回复可下载
黑蜘蛛
评论
10条评论855553 Lv.1
Chrome 108.0.5359.95
Windows 7 x64 Edition 回复
广东省深圳市 联通GSM/WCDMA/LTE全省共用出口
haiyang457 Lv.1
Chrome 86.0.4240.198
Windows 回复
谢谢啦
江苏省苏州市 移动
WXD Lv.1
Chrome 111.0.0.0
Windows 回复
感谢楼主
,好人一生平安
湖北省黄冈市 移动
END你在 Lv.1
Internet Explorer
iPhone iOS 15.6.1 回复
还好匿名会会会 会会
中国 移动
xxx Lv.1
Chrome 95.0.4638.69
Windows 7 回复
新人报道
学习一下
广西贵港市 移动
s211944 Lv.1
Chrome 102.0.5005.63
Windows 回复
新人报道
学习一下
广西桂林市 电信
一流 Lv.1
Chrome 98.0.4758.81
Windows 回复
非常好支持!
北京市 联通
Kid_Y Lv.1
Chrome 90.0.4430.72
Windows 回复
继续看看
上海市 联通
Kid_Y Lv.1
Chrome 90.0.4430.72
Windows 回复
学习看看
上海市 联通
uii123 Lv.1
Android Webkit 4.0
Android 10 回复
看看!!!
山东省济南市 电信