源码
在线演示地址:https://www.k6o.top/
源码GitHub开源:https://github.com/essesoul/UrlShorting
源码GitHub下载:https://codeload.github.com/soxft/UrlShorting/zip/refs/tags/v2.2.4
备用下载:1、000118-01-v5.2.4-更新-2021-11-28
使用:
1.下载源码.
2.上传至你的网站根目录.
3.访问网站域名填写mysql等信息进行安装
4.修改网站伪静态配置:
Nginx:
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?id=$1 last;
}
Apache:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?id=$1 [L]
</IfModule>
IIS (仅供参考,未进行测试):
<rule name="tool.apizl.com rewriteTools1" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^/(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="/index.php?id={R:1}" appendQueryString="false" />
</rule>
其他提示
由于某些原因,该源码仍然使用Mysqli连接数据库,可能缺乏一定的安全性,使用时请注意使用WAF等平台进行保护。
该项目目前由essesoul进行维护