【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中

[行业整站] PHP开发的站长导航网源码修复版

[复制链接]
查看474 | 回复0 | 2022-5-13 08:15:38 | 显示全部楼层 |阅读模式

宝塔Nginx+ php5.6+ mysql

先导入数据库文件www.longz.top.sql

再修改根目录下的config.php数据库配置

然后服务器设置好伪静态规则

访问网站OK

后台是:你的域名/admin/login.php 账号:admin 密码:www.longz.top
  1. Nginx伪静态规则
  2. rewrite ^/index.html$ /index.php;

  3. rewrite ^/about.html$ /about.php;
  4. rewrite ^/search.html$ /search.php;
  5. rewrite ^/apply.html$ /apply.php;
  6. rewrite ^/404.html$ /404.php;
  7. rewrite ^/sort([1-9]+[0-9]*).html$ /sort.php?id=$1;

  8. rewrite ^/sort([a-zA-Z]+).html$ /sort.php?alias=$1;
  9. rewrite ^/site_([1-9]+[0-9]*).html$ /site.php?id=$1;

  10. Apache的伪静态规则
  11. RewriteEngine On
  12. rewritebase /
  13. RewriteRule ^index.\html /index\.php [L,NC]
  14. RewriteRule ^about\.html about\.php [L,NC]
  15. RewriteRule ^search\.html search\.php [L,NC]
  16. RewriteRule ^apply\.html apply\.php [L,NC]
  17. RewriteRule ^404\.html 404\.php [L,NC]
  18. RewriteRule ^sort([0-9]+)\.html sort\.php?id=$1 [L,NC]
  19. RewriteRule ^sort([a-zA-Z]+)\.html sort\.php?alias=$1 [L,NC]
  20. RewriteRule ^site_([0-9]+)\.html site\.php?id=$1 [L,NC]
复制代码

1613980654-c4ca4238a0b9238.jpg
1613980655-c81e728d9d4c2f6.jpg
【腾讯云】云产品限时秒杀,爆款2核4G云服务器首年74元