说明
想自己搭一个像 hao123 那样的导航站?这套叫“孜然导航”的小程序就能搞定。它用 PHP 写逻辑,MySQL 存数据,整个包只有几百 KB,扔在虚拟主机上就能跑。
本地或云服务器只要装了 Apache,把 cofin.php 里的数据库信息填好,再把下面这段伪静态规则往 Apache 或 Nginx 里一贴,就能直接访问,不用再折腾路由。
宝塔用户更简单:
打开“网站→伪静态”,把下面 9 行粘进去,保存后顺手把根目录的 .htaccess 删掉,省得冲突。
“`
rewrite ^/index.html$ /index.php;
rewrite ^/about.html$ /about.php;
rewrite ^/arch.html$ /arch.php;
rewrite ^/ranking.html$ /ranking.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;
“`
装完在域名后面加 /admin,账号 admin,密码 123456,第一次登录记得改密。后台能增删分类、审核提交的网站,还能一键生成静态缓存,百度蜘蛛来抓也不卡。
源码开源无加密,想二开随便改,加个广告位、整点会员功能都能玩。
演示图

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






















暂无评论内容