<h1 align="center">
  <br>
  <a href="https://k6o.top/" alt="logo" ><img src="https://github.com/essesoul/img/blob/main/URLshorting/urlshorting.png?raw=true" width="150"/></a>
  <br>
  URLshorting
  <br>
  <a href="http://www.apache.org/licenses/LICENSE-2.0.html"> 
<img src="https://img.shields.io/github/license/soxft/URLshorting.svg?style=for-the-badge" alt="License"></a>
<a href="https://github.com/soxft/URLshorting/stargazers"> 
<img src="https://img.shields.io/github/stars/soxft/URLshorting.svg?style=for-the-badge" alt="GitHub stars"></a>
<a href="https://github.com/soxft/URLshorting/network/members"> 
<img src="https://img.shields.io/github/forks/soxft/URLshorting.svg?style=for-the-badge" alt="GitHub forks"></a> 
<a href = "https://github.com/soxft/UrlShorting/releases">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/soxft/urlshorting?style=for-the-badge"></a>
</h1>

# 需要注意
该项目暂时不再维护,我们将完全重构该项目,为了保证历史commit 以及 保证新项目的commit清晰, 我们准备在 https://github.com/soxft/UrlShorter 完成新的项目
<br> 如果您有任何新的建议, 可以在 /soxft/UrlShorter 提出issue 感谢支持


## 国内镜像地址
[Gitee](https://gitee.com/dtnetwork/UrlShorting)

## Github发布地址
[soxft](https://github.com/soxft/UrlShorting)
[essesoul](https://github.com/essesoul/UrlShorting)

## 简介

一个url网址缩短平台.

demo：[K6o短链接](https://www.k6o.top/)

## 安装方法
1.下载源码.<br/>
2.上传至你的网站根目录.<br/>
3.访问网站域名填写mysql等信息进行安装<br/>
4.修改网站伪静态配置:<br/>

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>
```


<br/>5.访问网站进行确认.

## 版权
xcsoft版权所有 该源码依据apache2开源协议开源,请不要修改版权信息！
  <p>Secondary Developed By k6o.top</p>
  <p>Contact us: Gary@dtnetwork.top</p>

## 更新
v2.2.3更新
<br/>此次更新由k6o短链接提供
  <p>email: Gary@dtnetwork.top</p>
  <P>1.更新了版本号获取方式，直接拉取GitHub的releases</p>
  <p>2.修改了footer.php中的显示bug</p>
  <p>3.版本号不再写入数据库和config.php，直接写在php变量中</p>
  <p>4.更新footer和友链</p>
  <p>5.优化了一下代码的缩进</p>
  <p>PS:下次更新计划加上登陆页面验证码和统计代码</p>

## 其他提示
  由于某些原因，该源码仍然使用Mysqli连接数据库，可能缺乏一定的安全性，使用时请注意使用WAF等平台进行保护。
  该项目目前由essesoul进行维护
