在线工具箱|多功能在线工具箱源码安装说明
2025-01-08
安装环境:Nginx(或Apache)+PHP5.6+MYSQL5.6 (必须此环境)
安装步骤:
1、解压上传到服务器根目录。
2、导入修改后的db.sql数据库文件。
3、修改根目录下的config.php及site.php中数据库信息。
4、安装完成,登录后台。
5、修改网站信息,并修改工具中的所有绝对地址为您的域名即可。
6、设置伪静态。
后台地址:域名/admin/login.php 用户名:admin 密码:qwe123456
登录后若是跳转不过去就直接 /admin/index.php
在数据库执行sql:
UPDATE zzdh_list SET url = REPLACE(url, 'http://116.196.105.198:90', '你的网址' ) ;
----------------------------------------------------------------------------------------------
伪静态规则:
Nginx:
rewrite ^/index.html$ /index.php;
rewrite ^/about.html$ /a.php;
rewrite ^/top.html$ /top.php;
rewrite ^/s.html$ /s.php;
rewrite ^/404.html$ /404.php;
rewrite ^/([1-9]+[0-9]*).html$ /sort.php?id=$1;
rewrite ^/([a-zA-Z]+).html$ /sort.php?alias=$1;
rewrite ^/([1-9]+[0-9]*)/$ /site_list.php?id=$1;
rewrite ^/([a-zA-Z]+)/$ /site_list.php?alias=$1;
rewrite ^/site/([1-9]+[0-9]*).html$ /site.php?id=$1;
rewrite ^/site/([a-zA-Z]+).html$ /site.php?alias=$1;
Apache:
RewriteEngine On
rewritebase /
RewriteRule ^index.\html /index\.php [L,NC]
RewriteRule ^about\.html a\.php [L,NC]
RewriteRule ^s\.html s\.php [L,NC]
RewriteRule ^top\.html top\.php [L,NC]
RewriteRule ^404\.html 404\.php [L,NC]
RewriteRule ^/([1-9]+[0-9]*)\.html sort\.php?id=$1 [L,NC]
RewriteRule ^/([a-zA-Z]+).\.html sort\.php?alias=$1 [L,NC]
RewriteRule ^/([1-9]+[0-9]*)\.html site_list\.php?id=$1 [L,NC]
RewriteRule ^/site/([1-9]+[0-9]*)\.html site\.php?id=$1 [L,NC]
RewriteRule ^/site/([a-zA-Z]+)\.html site\.php?alias=$1 [L,NC]
----------------------------------------------------------------------------------
一些使用说明:
底部版权以及网址修改位置
根目录里的 footer.php
404页面在根目录里的404.php,修改为你的首页网址即可!
--------------------------
至于a.php 是网站介绍,不过链接已经删除,要改不改都无所谓,如果你要展示,那就改,不展示就不管。