当我在 Github 上搜索时,出现了很多这样的内容:
https://github.com/search?langOverride=&q=url+shortener&repo=&start_value=1&type=Repositories
A lot of them popped up when I did a search on Github:
这算不算? http://code.google.com/p/urly/
或此http://yourls.org/
Does this Count? http://code.google.com/p/urly/
or this http://yourls.org/
Firefly 声称它可以起来2 分钟内运行: https://github.com/ariejan/firefly#readme
这里有一些其他建议: http ://www.webresourcesdepot.com/7-open-source-and-free-url-shortener-scripts-to-create-your-own/
Firefly claims it can be up & running in 2 minutes: https://github.com/ariejan/firefly#readme
Here are some other suggestions: http://www.webresourcesdepot.com/7-open-source-and-free-url-shortener-scripts-to-create-your-own/
您可以使用数据库轻松地自己完成此操作。只需将每个长网址作为键存储在数据库中,将短网址作为值存储即可。您可以轻松地在表中创建一个带有自动增量字段的短表。您的网址将如下所示:
http://mysite.com/12345
在您选择的服务器端编程语言中,只需查找表,然后进行重定向即可。
You could do it yourself easily enough with a database. Just store each long url in the database as a key and the short one as a value. You could easily create a short one with an auto-increment field in your table. Your urls would look like this:
In your server side programming language of choice, just do a look up into the table, and then do a redirect.
我在我的缩短器中使用 http://yourls.org/,非常强大并且启用了插件。您还可以轻松创建自己的包含统计数据和内容的页面。
这是我的:
http://impbr.com
I use http://yourls.org/ in my shortener, very powerful and plugin enabled. You can also easily create your own pages with stats and stuff.
Here's mine:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(5)
当我在 Github 上搜索时,出现了很多这样的内容:
https://github.com/search?langOverride=&q=url+shortener&repo=&start_value=1&type=Repositories
A lot of them popped up when I did a search on Github:
https://github.com/search?langOverride=&q=url+shortener&repo=&start_value=1&type=Repositories
这算不算? http://code.google.com/p/urly/
或此http://yourls.org/
Does this Count? http://code.google.com/p/urly/
or this http://yourls.org/
Firefly 声称它可以起来2 分钟内运行: https://github.com/ariejan/firefly#readme
这里有一些其他建议: http ://www.webresourcesdepot.com/7-open-source-and-free-url-shortener-scripts-to-create-your-own/
Firefly claims it can be up & running in 2 minutes: https://github.com/ariejan/firefly#readme
Here are some other suggestions: http://www.webresourcesdepot.com/7-open-source-and-free-url-shortener-scripts-to-create-your-own/
您可以使用数据库轻松地自己完成此操作。只需将每个长网址作为键存储在数据库中,将短网址作为值存储即可。您可以轻松地在表中创建一个带有自动增量字段的短表。您的网址将如下所示:
http://mysite.com/12345
在您选择的服务器端编程语言中,只需查找表,然后进行重定向即可。
You could do it yourself easily enough with a database. Just store each long url in the database as a key and the short one as a value. You could easily create a short one with an auto-increment field in your table. Your urls would look like this:
http://mysite.com/12345
In your server side programming language of choice, just do a look up into the table, and then do a redirect.
我在我的缩短器中使用 http://yourls.org/,非常强大并且启用了插件。您还可以轻松创建自己的包含统计数据和内容的页面。
这是我的:
http://impbr.com
I use http://yourls.org/ in my shortener, very powerful and plugin enabled. You can also easily create your own pages with stats and stuff.
Here's mine:
http://impbr.com