Skip to content

yu0556/UrlShorting

 
 

Repository files navigation



URLshorting

License GitHub stars GitHub forks

English version(BETA)

https://github.com/essesoul/UrlShorting-en

简介

一个url网址缩短平台.

demo:K6o短链接

安装方法

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>


5.访问网站进行确认.

版权

xcsoft版权所有 该源码依据apache2开源协议开源,请不要修改版权信息!

Secondary Developed By k6o.top

Contact us: [email protected]

更新

v2.2.1更新
此次更新由k6o短链接提供

email: [email protected]


增加英文翻译

About

A simple but powerful URL shortener

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%