【腾讯云】精选爆款限时体验20元起,云数据库19.9元/年起

[行业整站] 宅男导航源码整站打包分享源码

[复制链接]
查看192 | 回复0 | 2022-3-9 08:24:59 | 显示全部楼层 |阅读模式

  1. 安装说明:

  2. 宝塔Nginx -Tengine2.2.3的PHP5.6 + MySQL5.6.44
  3. 先导入数据库文件.sql
  4. 再修改config.php数据库配置
  5. 然后服务器设置好伪静态规则
  6. 访问网站OK
  7. 后台是:你的域名/admin/login.php 账号:admin 密码:123456



  8. Nginx伪静态规则
  9. rewrite ^/index.html$ /index.php;
  10. rewrite ^/about.html$ /about.php;
  11. rewrite ^/search.html$ /search.php;
  12. rewrite ^/ranking.html$ /ranking.php;
  13. rewrite ^/wz.html$ /wzall.php;
  14. rewrite ^/apply.html$ /apply.php;
  15. rewrite ^/404.html$ /404.php;
  16. rewrite ^/sort([1-9]+[0-9]*).html$ /sort.php?id=$1;
  17. rewrite ^/sort([a-zA-Z]+).html$ /sort.php?alias=$1;
  18. rewrite ^/site_([1-9]+[0-9]*).html$ /site.php?id=$1;
  19. rewrite ^/wz([1-9]+[0-9]*).html$ /wz.php?id=$1;
  20. rewrite ^/wzshow_([1-9]+[0-9]*).html$ /wzshow.php?id=$1;

  21. Apache伪静态规则
  22. RewriteEngine On
  23. rewritebase /
  24. RewriteRule ^index.html /index.php [L,NC]
  25. RewriteRule ^about.html about.php [L,NC]
  26. RewriteRule ^search.html search.php [L,NC]
  27. RewriteRule ^ranking.html ranking.php [L,NC]
  28. RewriteRule ^wz.html wzall.php [L,NC]
  29. RewriteRule ^apply.html apply.php [L,NC]
  30. RewriteRule ^404.html 404.php [L,NC]
  31. RewriteRule ^sort([0-9]+).html sort.php?id=$1 [L,NC]
  32. RewriteRule ^sort([a-zA-Z]+).html sort.php?alias=$1 [L,NC]
  33. RewriteRule ^site_([0-9]+).html site.php?id=$1 [L,NC]
  34. RewriteRule ^wz([0-9]+).html wz.php?id=$1 [L,NC]
  35. RewriteRule ^wzshow_([0-9]+).html wzshow.php?id=$1 [L,NC]
复制代码

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