手中的剑为什么而挥动
只有靠你自己去寻找答案----盖聂

源码-星辰短域源码-网址缩短工具

源码
在线演示地址: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进行维护

星辰短域

赞(0) 打赏
未经允许不得转载: » 源码-星辰短域源码-网址缩短工具

评论 抢沙发

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

登录

找回密码

注册