发表于 2024-5-2 16:11:13

懒人网址导航源码v3.9

<div>测试环境</div>
<div>宝塔Nginx -Tengine2.2.3的PHP5.6 + MySQL5.6.44</div>
<div>为防止调试错误,建议使用测试环境运行的php与mysql版本</div>
<div>首先用phpMyAdmin导入数据库文件db/db.sql</div>
<div>如果导入不行,请直接复制数据库内容运行sql语句也可以</div>
<div>再修改config.php来进行数据库配置</div>
<div>然后在服务器设置好伪静态规则</div>
<div>访问网站OK</div>
<div>后台是:你的域名/admin/login.php 账号:admin 密码:qqqqqq</div>
<div>&nbsp;</div>
<div>Nginx伪静态规则</div>
<div>rewrite ^/index.html$ /index.php;</div>
<div>rewrite ^/about.html$ /about.php;</div>
<div>rewrite ^/search.html$ /search.php;</div>
<div>rewrite ^/ranking.html$ /ranking.php;</div>
<div>rewrite ^/wz.html$ /wzall.php;</div>
<div>rewrite ^/apply.html$ /apply.php;</div>
<div>rewrite ^/404.html$ /404.php;</div>
<div>rewrite ^/sort(+*).html$ /sort.php?id=$1;</div>
<div>rewrite ^/sort(+).html$ /sort.php?alias=$1;</div>
<div>rewrite ^/site_(+*).html$ /site.php?id=$1;</div>
<div>rewrite ^/wz(+*).html$ /wz.php?id=$1;</div>
<div>rewrite ^/wzshow_(+*).html$ /wzshow.php?id=$1;</div>
<div>&nbsp;</div>
<div>Apache伪静态规则</div>
<div>RewriteEngine On</div>
<div>rewritebase /</div>
<div>RewriteRule ^index.\html /index\.php </div>
<div>RewriteRule ^about\.html about\.php </div>
<div>RewriteRule ^search\.html search\.php </div>
<div>RewriteRule ^ranking\.html ranking\.php </div>
<div>RewriteRule ^wz\.html wzall\.php </div>
<div>RewriteRule ^apply\.html apply\.php </div>
<div>RewriteRule ^404\.html 404\.php </div>
<div>RewriteRule ^sort(+)\.html sort\.php?id=$1 </div>
<div>RewriteRule ^sort(+)\.html sort\.php?alias=$1 </div>
<div>RewriteRule ^site_(+)\.html site\.php?id=$1 </div>
<div>RewriteRule ^wz(+)\.html wz\.php?id=$1 </div>
<div>RewriteRule ^wzshow_(+)\.html wzshow\.php?id=$1 </div>
<div>&nbsp;</div>
<p>IIS伪静态规则(请查看压缩包中的版本简单说明)</p>
<p></p>
<p>下载地址:<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="https://xiaok.lanzoum.com/iVeMy1xekbsd" target="_blank" rel="noopener">https://xiaok.lanzoum.com/iVeMy1xekbsd</a></span></p>
页: [1]
查看完整版本: 懒人网址导航源码v3.9