Myurl基于php+mysql实现的网址缩短服务,程序主要靠api.php生成,前台是个静态页面,自己也可以进行美化!! 前台使用的乐视短网址的板子,看起来很简单。 将程序上传至网站根目录。 将install.sql上传至数据库。 修改config.php数据库配置。 nginx添加伪静态规则。 location / { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.+)$ /do.php?uid=$1 last; } }