<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>走点路&#187; Short Url</title> <atom:link href="http://zou.lu/tags/short-url/feed/" rel="self" type="application/rss+xml" /><link>http://zou.lu</link> <description>走点路，走自己牛逼的路，让那些个傻逼去说吧！</description> <lastBuildDate>Tue, 07 Sep 2010 16:32:13 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>AA.CX 短网址 WordPress 插件</title><link>http://zou.lu/aacx-wordpress-plugin/</link> <comments>http://zou.lu/aacx-wordpress-plugin/#comments</comments> <pubDate>Mon, 23 Nov 2009 09:18:39 +0000</pubDate> <dc:creator>Showfom</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[AA.CX]]></category> <category><![CDATA[Short Url]]></category> <category><![CDATA[uLShort]]></category> <category><![CDATA[WordPress插件]]></category> <category><![CDATA[短网址]]></category><guid isPermaLink="false">http://zou.lu/aacx-wordpress-plugin/</guid> <description><![CDATA[随着 Bit.ly 等一大批国外短网址系统身处天朝防火墙之外，应该是国内短网址登上舞台的时候了。 AA.CX 是用 uLShort 这款开源程序搭建的，服务器位于国内，域名备过案，算是正规网站吧（偷笑ing）基本不怕被墙，当然在天朝的网络制度下，万一哪天假如网监要求我删除某个链接那是必须照做的。 写博客的朋友大多是很和谐的，一定不会做坏事，所以，为了推广 AA.CX 短网址，特意模仿修改了一款老插件 《缩短网址工具》，旧插件使用的是已经消失的国内某个短网址服务，所以我说嘛，这个东西还是自己来做的比较好。 什么是短网址？为什么我要使用 AA.CX 短网址？ AA.CX 短网址是 Showfom 通过 uLShort 修改的短网址网站，具有如下特点： 1、网址够短，域名只有四个字符，目前生成的短网址总共不超过15个字符，还不够短吗？ 2、具有黑名单过滤功能，具有图片视频音频等媒体在线播放功能，具有 aa.cx 短网址预览功能 3、开放 API 4、实际上是有统计功能的，数据库里全部记录，只需要在网址后面加入 ~ 符号即可，比如： http://aa.cx/jp~ 5、服务器位于国内，速度更快更方便，不易被墙。 插件作者： 原作者：PKPHP 修改：Showfom 插件简介： WordPress 短网址插件，自动调用 AA.CX 短网址，通用版需要自己增加代码，懒人版自动在文章内容底部增加短网址链接，无需手工输入获得短网址，适合在 Twitter、嘀咕 等微博客平台上进行博客文章的推广。 适用版本： WordPress 2.3+，几乎通用任何版本 插件预览： 插件下载： 通用版 （Download） &#124; 懒人版 （Easy Version Download） 安装方法： 1、针对喜欢折腾的用户，请下载通用版，上传激活以后，修改自己主题的 [...]]]></description> <content:encoded><![CDATA[<p>随着 <strong>Bit.ly</strong> 等一大批国外短网址系统身处天朝防火墙之外，应该是国内短网址登上舞台的时候了。 AA.CX 是用 <a title="uLShort" href="http://zou.lu/ulshort/" target="_blank"><strong>uLShort</strong></a> 这款开源程序搭建的，服务器位于国内，域名备过案，算是正规网站吧（偷笑ing）基本不怕被墙，当然在天朝的网络制度下，万一哪天假如网监要求我删除某个链接那是必须照做的。</p><p>写博客的朋友大多是很和谐的，一定不会做坏事，所以，为了推广 <a href="http://aa.cx/" target="_blank">AA.CX 短网址</a>，特意模仿修改了一款老插件 《<a href="http://www.pkphp.com/2008/05/31/%E7%BC%A9%E7%9F%AD%E7%BD%91%E5%9D%80%E5%B7%A5%E5%85%B7short-url-wordpress-plugin/" target="_blank">缩短网址工具</a>》，旧插件使用的是已经消失的国内某个短网址服务，所以我说嘛，这个东西还是自己来做的比较好。</p><p><span id="more-124"></span></p><h2>什么是短网址？为什么我要使用 AA.CX 短网址？</h2><h2><a href="//showfom.imgbed.com/AA.CXWordPress_F366/LogoMaker.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="AA.CX 短网址 WordPress 插件" src="//showfom.imgbed.com/AA.CXWordPress_F366/LogoMaker_thumb.png" border="0" alt="AA.CX 短网址 WordPress 插件" width="240" height="112" /></a></h2><p><a href="http://aa.cx/" target="_blank">AA.CX</a> 短网址是 <a href="http://zou.lu/" target="_blank">Showfom</a> 通过 <a title="uLShort" href="http://zou.lu/ulshort/" target="_blank">uLShort</a> 修改的短网址网站，具有如下特点：</p><p>1、网址够短，域名只有四个字符，目前生成的短网址总共不超过15个字符，还不够短吗？</p><p>2、具有黑名单过滤功能，具有图片视频音频等媒体在线播放功能，具有 aa.cx 短网址预览功能</p><p>3、开放 API</p><p>4、实际上是有统计功能的，数据库里全部记录，只需要在网址后面加入 ~ 符号即可，比如： <a href="http://aa.cx/jp~">http://aa.cx/jp~</a></p><p>5、服务器位于国内，速度更快更方便，不易被墙。</p><h2>插件作者：</h2><p>原作者：<a href="http://www.pkphp.com/2008/05/31/%E7%BC%A9%E7%9F%AD%E7%BD%91%E5%9D%80%E5%B7%A5%E5%85%B7short-url-wordpress-plugin/" target="_blank">PKPHP</a></p><p>修改：<a href="http://zou.lu/" target="_blank">Showfom</a></p><h2>插件简介：</h2><p><strong>WordPress 短网址插件</strong>，自动调用 <a title="AA.CX 短网址" href="http://aa.cx/" target="_blank">AA.CX 短网址</a>，通用版需要自己增加代码，懒人版自动在文章内容底部增加短网址链接，无需手工输入获得短网址，适合在 <a href="https://tuite.de/Showfom" target="_blank">Twitter</a>、<a href="http://digu.com/Showfom" target="_blank">嘀咕</a> 等微博客平台上进行博客文章的推广。</p><h2>适用版本：</h2><p>WordPress 2.3+，几乎通用任何版本</p><h2>插件预览：</h2><p><a href="//showfom.imgbed.com/AA.CXWordPress_F366/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="AA.CX 短网址 WordPress 插件" src="//showfom.imgbed.com/AA.CXWordPress_F366/image_thumb.png" border="0" alt="AA.CX 短网址 WordPress 插件" width="517" height="62" /></a></p><h2>插件下载：</h2><p><a title="通用版下载" href="//showfom.imgbed.com/uploads/aacx_url.zip" target="_blank">通用版</a> （<a href="//showfom.imgbed.com/uploads/aacx_url.zip" target="_blank">Download</a>） | <a title="懒人版下载" href="//showfom.imgbed.com/uploads/aacx.zip" target="_blank">懒人版</a> （<a href="//showfom.imgbed.com/uploads/aacx.zip" target="_blank">Easy Version Download</a>）</p><h2>安装方法：</h2><p>1、针对喜欢折腾的用户，请下载通用版，上传激活以后，修改自己主题的 <strong>single.php</strong> ，加入<strong> aacx_url()</strong> 函数即可，比如（可能要把全角符号修改成半角符号）</p><div class="source" style="background-color: #333333; font-family: &quot;[object HTMLOptionElement]&quot;,&quot;monospace&quot;; color: #ffffff"><span style="color: #ffffff">&lt;p&gt;本文短网址：&lt;a href="</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">" title="</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">"  rel="external nofollow"&gt;</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&lt;/a&gt;&lt;/p&gt;</span></div><p>还可以参考我的做法，加入收藏和分享的相关链接：</p><div class="source" style="background-color: #333333; font-family: &quot;[object HTMLOptionElement]&quot;,&quot;monospace&quot;; color: #ffffff"><span style="color: #ffffff">&lt;p&gt;收藏+分享: &lt;a href="http://del.icio.us/post?url=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;title=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">" target="_blank" rel="nofollow"&gt;Delicious&lt;/a&gt; / &lt;a href="https://skydrive.live.com/sharefavorite.aspx/.SharedFavorites/?url=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;title=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">" target="_blank" rel="nofollow"&gt;Live Favorites&lt;/a&gt; / &lt;a href="http://www.google.com/bookmarks/mark?op=edit&amp;amp;bkmk=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;title=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">" target="_blank" rel="nofollow"&gt;Google书签&lt;/a&gt; / &lt;a href="http://cang.baidu.com/do/add?iu=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;it=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;dc=&amp;amp;fr=ien#nw=1" target="_blank" rel="nofollow"&gt;百度搜藏&lt;/a&gt; / &lt;a href="http://shuqian.qq.com/post?uri=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;title=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">" target="_blank" rel="nofollow"&gt;QQ书签&lt;/a&gt; / &lt;a href="http://fanfou.com/sharer?u=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;t=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">" target="_blank" rel="nofollow"&gt;饭否&lt;/a&gt; / &lt;a href="http://www.douban.com/recommend/?url=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;title=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;amp;sel=&amp;amp;v=1&amp;amp;n=1" target="_blank" rel="nofollow"&gt;豆瓣&lt;/a&gt; / &lt;a href="https://tuite.de/share.php?u=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #f0e68c">if</span> (<span style="color: #ffffff">function_exists</span>(<span style="color: #ffffff">'aacx_url'</span>)) <span style="color: #ffffff">aacx_url</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;t=</span><span style="color: #cd5c5c">&lt;?php</span> <span style="color: #ffffff">the_title</span>(); <span style="color: #cd5c5c">?&gt;</span><span style="color: #ffffff">&amp;d=&amp;s=bm" target="_blank" rel="nofollow"&gt;Twitter&lt;/a&gt;&lt;/p&gt;</span></div><p><strong>2、针对新手或者懒人用户，请下载懒人版，上传激活以后，自行会在文章内容末尾增加短网址链接，十分方便。</strong></p><p>================</p><p><strong>PS 1：</strong>假如你想用自己的短网址，修改插件的<strong> http://aa.cx/api.php?url= </strong>为你自己的<strong> API 地址 </strong>即可</p><p><strong>PS 2：</strong>某人会很无耻在一些博客装上此插件，哇咔咔。</p><h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://zou.lu/ulshort/" title="uLShort &#8211; 免费开源功能强大的短网址程序">uLShort &#8211; 免费开源功能强大的短网址程序</a> (89)</li><li><a href="http://zou.lu/yourls/" title="使用 Yourls 强化你的短网址系统">使用 Yourls 强化你的短网址系统</a> (86)</li><li><a href="http://zou.lu/get-your-own-short-url/" title="创建自己域名的短网址服务">创建自己域名的短网址服务</a> (30)</li><li><a href="http://zou.lu/pretty-link/" title="Pretty Link 又一款WordPress短网址插件">Pretty Link 又一款WordPress短网址插件</a> (26)</li><li><a href="http://zou.lu/short-url/" title="20+国内外短网址大点评">20+国内外短网址大点评</a> (34)</li><li><a href="http://zou.lu/mobilepress-themes-fixed/" title="MobilePress 主题汉化并修改">MobilePress 主题汉化并修改</a> (73)</li><li><a href="http://zou.lu/wordpress-spam-comments-sucks/" title="WordPress 评论群发器？操你大爷的！">WordPress 评论群发器？操你大爷的！</a> (195)</li><li><a href="http://zou.lu/comment-info-detector/" title="WordPress 显示留言者信息插件 &#8211; Comment Info Detector">WordPress 显示留言者信息插件 &#8211; Comment Info Detector</a> (258)</li><li><a href="http://zou.lu/careful-about-wordpress-plugins/" title="千里之堤溃于蚁穴 &#8211; 慎用 WordPress 插件">千里之堤溃于蚁穴 &#8211; 慎用 WordPress 插件</a> (135)</li><li><a href="http://zou.lu/comments-text-replace/" title="WordPress 精简版评论文明用语插件">WordPress 精简版评论文明用语插件</a> (118)</li></ul><hr /><div style="padding: 5px 10px; background: rgb(243, 245, 252) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><p>© from <a href="//zou.lu/?from=feed">走点路博客</a>, 2009/11/23. | <a href="http://zou.lu/aacx-wordpress-plugin/">AA.CX 短网址 WordPress 插件</a> | <a href="http://zou.lu/aacx-wordpress-plugin/#comments">105 只留言鸟</a> <br /> Tags： <a href="http://zou.lu/tags/aa-cx/" rel="tag">AA.CX</a>, <a href="http://zou.lu/tags/short-url/" rel="tag">Short Url</a>, <a href="http://zou.lu/tags/ulshort/" rel="tag">uLShort</a>, <a href="http://zou.lu/tags/wordpress%e6%8f%92%e4%bb%b6/" rel="tag">WordPress插件</a>, <a href="http://zou.lu/tags/%e7%9f%ad%e7%bd%91%e5%9d%80/" rel="tag">短网址</a> | <a href="//zou.lu/?p=124">Link</a> | <a href="http://zi.mu/domain"><font color="red">.me 域名全国最低价，首年仅需40元，续费130元促销中！</font></a></p></div>]]></content:encoded> <wfw:commentRss>http://zou.lu/aacx-wordpress-plugin/feed/</wfw:commentRss> <slash:comments>105</slash:comments> </item> <item><title>使用 Yourls 强化你的短网址系统</title><link>http://zou.lu/yourls/</link> <comments>http://zou.lu/yourls/#comments</comments> <pubDate>Sat, 01 Aug 2009 00:08:39 +0000</pubDate> <dc:creator>Showfom</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Short Url]]></category> <category><![CDATA[WordPress插件]]></category> <category><![CDATA[Yourls]]></category> <category><![CDATA[短网址]]></category><guid isPermaLink="false">http://zou.lu/yourls/</guid> <description><![CDATA[在《打造 WordPress 的简易短网址 》一文中，介绍了利用 WordPress 的 永久链接 打造简易山寨的短网址系统，但是这种方法有种缺憾，比如网站要搬家了，.htaccess文件被修改了，或者自己要查看短网址被访问的次数，这时候都是一件很麻烦的事情，所以，这里我推荐使用由国外著名 WordPress 插件大师级人物 Ozh Richard 和 Lester Chan 一起写的 Yourls 。 一、介绍作者 使用 WordPress 有点年份的老鸟一定对 Ozh （法国淫） 和 Lester Chan （新加坡淫） 两位大师级插件作者不会陌生，Ozh’s 插件系列，以及 Lester Chan 的 WP- 系列插件，或许你不知道他们的名字，但是 Ozh’s Better Feed 和 WP-Postviews、WP-Postnavi 等等大名鼎鼎的插件你一定不会陌生，没错，都是这两位作者的杰作。 Ozh 和 Lester Chan 的插件流行度都很大，这次两人联手制作的 Yourls ，引起无数粉丝狂欢，因为这款 php程序 本来是 Ozh 御用的，后来在广大爱好者的要求下，和 Lester Chan 一起重写，然后发布，嘎嘎。 [...]]]></description> <content:encoded><![CDATA[<p>在《<a title="打造 WordPress 的简易短网址" href="http://zou.lu/shortened-url-of-current-page-to-twitter/">打造 WordPress 的简易短网址</a> 》一文中，介绍了利用<strong> WordPress</strong> 的<strong> 永久链接</strong> 打造简易山寨的短网址系统，但是这种方法有种缺憾，比如网站要搬家了，<strong>.htaccess</strong>文件被修改了，或者自己要查看短网址被访问的次数，这时候都是一件很麻烦的事情，所以，这里我推荐使用由国外著名<strong> WordPress 插件</strong>大师级人物 <a title="Ozh Richard" href="http://planetozh.com/" target="_blank"><strong>Ozh Richard</strong></a> 和 <a title="Lester Chan" href="http://lesterchan.net/"><strong>Lester Chan</strong></a> 一起写的 <a title="Yourls 官方网站" href="http://yourls.org/" target="_blank"><strong>Yourls</strong></a> 。</p><p><span id="more-86"></span></p><h2>一、介绍作者</h2><p>使用 <strong>WordPress</strong> 有点年份的老鸟一定对<strong> Ozh</strong> （法国淫） 和 <strong>Lester Chan</strong> （新加坡淫） 两位大师级插件作者不会陌生，<strong>Ozh’s 插件系列</strong>，以及<strong> Lester Chan 的 WP- 系列插件</strong>，或许你不知道他们的名字，但是 <strong>Ozh’s Better Feed</strong> 和<strong> WP-Postviews</strong>、<strong>WP-Postnavi</strong> 等等大名鼎鼎的插件你一定不会陌生，没错，都是这两位作者的杰作。</p><p><strong>Ozh</strong> 和<strong> Lester Chan</strong> 的插件流行度都很大，这次两人联手制作的<strong> Yourls</strong> ，引起无数粉丝狂欢，因为这款<strong> php程序</strong> 本来是 <strong>Ozh</strong> 御用的，后来在广大爱好者的要求下，和 <strong>Lester Chan</strong> 一起重写，然后发布，嘎嘎。</p><p>八卦一下：<strong>Ozh</strong> 的御用私人短网址地址是 <a title="Ozh" href="http://ozh.in/" target="_blank">ozh.in</a> ，<strong>Lester Chan</strong> 的是 <a title="Lester Chan" href="http://lc.sg/" target="_blank">lc.sg</a> 。</p><h2>二、Yourls 下载安装使用介绍</h2><p><strong><span style="color: #0080ff; font-size: x-small;">下载：</span></strong></p><p><strong>Yourls</strong> 的最新版本是 1.1 ，可以前往 <a title="Yourls 下载" href="http://code.google.com/p/yourls/downloads/list" target="_blank">http://code.google.com/p/yourls/downloads/list</a> 进行下载，但是 1.1 有个致命的<strong>bug</strong>，不知道是 Ozh 浪漫过头了，还是 Lester Chan 也没看到，用非记事本打开 yourls-go.php，找到第23行，然后，</p><p>原句是：<strong>var_dump($url); die();</strong> 直接注释修改修给为 <strong>//var_dump($url); die();</strong></p><p>不修改的话生成短网址的时候会出错，感谢 <strong>Lorz</strong> <a title="Lorz 纠错" href="http://lorz.me/short-url-yourls/#comment-1562" target="_blank">发现</a>。</p><p><strong><span style="color: #0080ff; font-size: x-small;">安装：</span></strong></p><p><strong>Yourls </strong>的安装方法也比较简单，首先打开 <strong>includes\config-sample.php</strong> ，</p><p>找到</p><blockquote><p>/** MySQL database username */<br /> define('YOURLS_DB_USER', 'dbuser'); <strong>// MySQL 数据库用户名</strong></p><p>/** MySQL database password */<br /> define('YOURLS_DB_PASS', 'dbpassword'); <strong>// MySQL 数据库密码</strong></p><p>/** The name of the database for YOURLS */<br /> define('YOURLS_DB_NAME', 'shorturl'); <strong>// MySQL 数据库名称</strong></p><p>/** MySQL hostname */<br /> define('YOURLS_DB_HOST', 'localhost'); <strong>// MySQL 数据库所在主机，99%情况不用修改，Godaddy的空间需要修改</strong></p><p>/** MySQL URL table name. Don't change this if in doubt. */<br /> define('YOURLS_DB_TABLE_URL', 'url'); <strong>// 创建的 Yourls 的表的名字，同一个数据库放多个 Yourls 程序时需要修改</strong></p><p>/** MySQL Next ID table name. Don't change this if in doubt. */<br /> define('YOURLS_DB_TABLE_NEXTDEC', 'next_id'); <strong>// 同上</strong></p></blockquote><p>修改成相应的数据库信息</p><p>找到</p><blockquote><p>/*<br /> ** Site options<br /> */</p><p>/** Short domain URL, no trailing slash */<br /> define('YOURLS_SITE', '<a href="http://site.com');">http://site.com');</a> <strong>//站点域名</strong></p><p>/** Timezone GMT offset */<br /> define('YOURLS_HOURS_OFFSET', 0); <strong>//时区修改，基本没必要</strong></p><p>/** Private means protected with login/pass as defined below. Set to false for public usage. */<br /> define('YOURLS_PRIVATE', true); <strong>//私人用还是公开用，公开的话写false，一般都私人用</strong></p><p>/** A random secret hash used to encrypt cookies. You don't have to remember it, make it long and complicated. Hint: copy from <a href="http://yourls.org/cookiekey.php">http://yourls.org/cookiekey.php</a> **/<br /> define('YOURLS_COOKIEKEY', 'qQ4KhL_pu|s@Zm7n#%:b^{A[vhm'); <strong>//访问 </strong><a href="http://yourls.org/cookiekey.php"><strong>http://yourls.org/cookiekey.php</strong></a><strong> 取得一个唯一的 Key 并且修改填入</strong></p><p>/**  Username(s) and password(s) allowed to access the site */<br /> $yourls_user_passwords = array(<br /> 'username' =&gt; 'password',<br /> 'username2' =&gt; 'password2'    // You can have one or more 'login'=&gt;'password' lines<br /> ); <strong>//这里是管理员的用户名和密码，默认有两组，可以删除一组或者增加N多组</strong></p></blockquote><p>根据自己的需要进行修改</p><p>然后把 <strong>config-sample.php</strong> 重命名为<strong> config.php</strong> ，确保你的空间支持<strong> PHP + MySQL</strong> 以及基本的几个组件（<strong>Mod-Rewrite功能，Curl 等</strong>，一般的空间都支持）</p><p>最后执行 <strong>http://你的地址/admin/install.php</strong> 进行安装即可</p><p>使用 <strong>Apache </strong>主机的朋友，请确定你的空间支持 <strong>Mod-Rewrite</strong> ，就是可以用<strong> .htacces</strong>s 文件进行伪静态，程序根目录已经给你写好 <strong>.htaccess </strong>所以不用自己再写；使用<strong> Nginx</strong> 的童鞋，伪静态的规则是：</p><blockquote><p> location /<br /> {<br /> if (!-f $request_filename){<br /> set $rule_0 1$rule_0;<br /> }<br /> if (!-d $request_filename){<br /> set $rule_0 2$rule_0;<br /> }<br /> if ($rule_0 = "21"){<br /> rewrite ^/([0-9A-Za-z]+)/?$ /yourls-go.php?id=$1 last;<br /> }<br /> rewrite ^/([0-9A-Za-z]+)\+/?$ /yourls-infos.php?id=$1 last;<br /> rewrite ^/([0-9A-Za-z]+)\+all/?$ /yourls-infos.php?id=$1&#038;all=1 last;<br /> }</p></blockquote><p>已经测试无误，因为本人的 Yourls 就是放在 Nginx 主机上的。</p><p><strong><span style="color: #0080ff; font-size: x-small;">使用：</span></strong></p><p>Yourls 提供两种 <strong>URL 编码</strong>形式，一种是只有小写的 <strong>Base 36 encoding </strong><code><strong>0123456789abcdefghijklmnopqrstuvwxyz</strong>，还有一种是有大小写的 <strong>Base 62 encoding </strong><code><strong>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</strong>，一般来说，使用默认的 <strong>Base 36</strong> 即可，因为要使用<strong> Base 62</strong> 需要空间支持 <strong>php</strong> 的 <strong>BCMath 扩展</strong>，而且没什么必要，个人用 <strong>Base 32</strong> 足矣，官方<a title="Yourls" href="http://yourls.org/#FAQ" target="_blank">宣称</a>可以创建 4,738,381,338,321,617,846 个短网址，天哪，这得用到猴年马月，所以没什么特殊情况就不用修改 <strong>config.php</strong> ，用默认的编码即可。</code></code></p><p><code><code>后台地址是 <strong>http://你的地址/admin/</strong> 当然可以修改 <strong>admin</strong> 文件夹的名字以防万一，管理员的用户名和密码都在 <strong>includes\config.php</strong> 里自己设置，不推荐使用常用的密码，毕竟是明文形式储存，所以想一个复杂点的没用过的密码最好不过。</code></code></p><p><code><code>登陆后台，就可以看到清爽的后台界面，在后台增加短网址之类的就不用我说了，<strong>UI</strong> 界面非常友好，如图：</code></code></p><p><a href="//showfom.imgbed.com/Yourls_728D/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Yourls" src="//showfom.imgbed.com/Yourls_728D/image_thumb.png" border="0" alt="Yourls" width="644" height="301" /></a></p><p>为自己的博客文章或页面生成短网址有两种方式，一种就是截图所示的后台自己生成，一种是通过 API 或 WordPress 插件。</p><p>默认的 API 地址就是 http://你的地址/yourls-api.php 官方的 API 文档在这里：<a title="http://yourls.org/#API" href="http://yourls.org/#API">http://yourls.org/#API</a> 虽然不够详细，但是也够用了。要是觉得一头雾水的话，<a title="Lorz" href="http://lorz.me/short-url-yourls/" target="_blank">Lorz</a> 童鞋为我们做好了 JavaScript 脚本：</p><p><a href="http://lorz.me/short-url-yourls/">http://lorz.me/short-url-yourls/</a></p><p>怎么样，还是很拉风的吧。</p><div class="fixed">在阅读器中无效的，请移步到这里：<a title="使用 Yourls 强化你的短网址系统" href="http://zou.lu/yourls/" target="_blank">http://zou.lu/yourls/</a></div><div class="fixed">更加方便的一种方法是使用 <strong>Ozh</strong> 写的 <strong>WordPress 插件</strong> - <a title="YOURLS: WordPress to Twitter" href="http://wordpress.org/extend/plugins/yourls-wordpress-to-twitter/" target="_blank">YOURLS: WordPress to Twitter</a></div><div class="fixed">下载，上传，后台激活，然后按照我这样的设置即可（国外空间的童鞋还可以选择发送到<strong> Twitter</strong> ，国内空间的童鞋就没福气了，原因不详，我文盲，不知道为啥<strong> Twitter</strong> 不能直接上，连<strong> API</strong> 都封。）</div><div class="fixed"><a href="//showfom.imgbed.com/Yourls_728D/image_3.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border: 0px;" title="Yourls" src="//showfom.imgbed.com/Yourls_728D/image_thumb_3.png" border="0" alt="Yourls" width="644" height="361" /></a></div><p><strong>Ozh</strong> <a title="Yourls" href="http://planetozh.com/blog/yourls-wordpress-to-twitter-a-short-url-plugin/">提供</a>了两个 <strong><a title="什么是 Template Tags" href="http://codex.wordpress.org/Template_Tags" target="_blank">Template Tags</a></strong></p><p><strong>&lt;?php if (function_exists('wp_ozh_yourls_url')) wp_ozh_yourls_url(); ?&gt;</strong> 用来直接输出生成的短网址地址，可以用在主题文件的 single.php 、 page.php 等，这个函数输出的内容如下：</p><blockquote><p><tt>&lt;a href=”http://gxf.in/1” rel="nofollow alternate shorter" title="short URL"&gt;http://gxf.in/1&lt;/a&gt;</tt></p></blockquote><p><strong>&lt;?php if (function_exists('wp_ozh_yourls_head_linkrel')) wp_ozh_yourls_head_linkrel(); ?&gt;</strong> 是一个放在头部的东东，对 Google 等搜索引擎肯定有好处，对百度这种那就算了。这个函数输出的内容如下：</p><blockquote><p><tt>&lt;link rel="alternate short shorter shorturl" href=”http://gxf.in/1” /&gt;</tt></p></blockquote><p>帅吧，还犹豫什么，拿起你手中的短域名开始你的短网址之旅吧，<strong><a title="Showfom's Blog" href="http://zou.lu/" target="_blank">Showfom 小帅锅</a></strong>已经把文章页面里的短网址全部替换成自己架设的 <strong>Yourls</strong> ，而且域名就是模仿<strong> Ozh</strong> 的，注册了个酷酷的 <strong>gxf.in</strong> （拼音缩写），私人短网址的时代到来了！</p><h2>三、个人意见</h2><p>个人觉得Yourls最那啥的一点就是，默认是按照顺序来排列短网址，而不是通常的随机字母数字结合，希望作者能在下一个版本改进。</p><p>PS： Yourls 已经改进很多，比如在短网址最后加 + 符号即可查看统计次数，前台也有简单的模板样式，详见： <a href="http://gxf.in/">http://gxf.in/</a></p><h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://zou.lu/aacx-wordpress-plugin/" title="AA.CX 短网址 WordPress 插件">AA.CX 短网址 WordPress 插件</a> (105)</li><li><a href="http://zou.lu/get-your-own-short-url/" title="创建自己域名的短网址服务">创建自己域名的短网址服务</a> (30)</li><li><a href="http://zou.lu/pretty-link/" title="Pretty Link 又一款WordPress短网址插件">Pretty Link 又一款WordPress短网址插件</a> (26)</li><li><a href="http://zou.lu/short-url/" title="20+国内外短网址大点评">20+国内外短网址大点评</a> (34)</li><li><a href="http://zou.lu/mobilepress-themes-fixed/" title="MobilePress 主题汉化并修改">MobilePress 主题汉化并修改</a> (73)</li><li><a href="http://zou.lu/wordpress-spam-comments-sucks/" title="WordPress 评论群发器？操你大爷的！">WordPress 评论群发器？操你大爷的！</a> (195)</li><li><a href="http://zou.lu/comment-info-detector/" title="WordPress 显示留言者信息插件 &#8211; Comment Info Detector">WordPress 显示留言者信息插件 &#8211; Comment Info Detector</a> (258)</li><li><a href="http://zou.lu/ulshort/" title="uLShort &#8211; 免费开源功能强大的短网址程序">uLShort &#8211; 免费开源功能强大的短网址程序</a> (89)</li><li><a href="http://zou.lu/careful-about-wordpress-plugins/" title="千里之堤溃于蚁穴 &#8211; 慎用 WordPress 插件">千里之堤溃于蚁穴 &#8211; 慎用 WordPress 插件</a> (135)</li><li><a href="http://zou.lu/comments-text-replace/" title="WordPress 精简版评论文明用语插件">WordPress 精简版评论文明用语插件</a> (118)</li></ul><hr /><div style="padding: 5px 10px; background: rgb(243, 245, 252) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><p>© from <a href="//zou.lu/?from=feed">走点路博客</a>, 2009/08/01. | <a href="http://zou.lu/yourls/">使用 Yourls 强化你的短网址系统</a> | <a href="http://zou.lu/yourls/#comments">86 只留言鸟</a> <br /> Tags： <a href="http://zou.lu/tags/short-url/" rel="tag">Short Url</a>, <a href="http://zou.lu/tags/wordpress%e6%8f%92%e4%bb%b6/" rel="tag">WordPress插件</a>, <a href="http://zou.lu/tags/yourls/" rel="tag">Yourls</a>, <a href="http://zou.lu/tags/%e7%9f%ad%e7%bd%91%e5%9d%80/" rel="tag">短网址</a> | <a href="//zou.lu/?p=86">Link</a> | <a href="http://zi.mu/domain"><font color="red">.me 域名全国最低价，首年仅需40元，续费130元促销中！</font></a></p></div>]]></content:encoded> <wfw:commentRss>http://zou.lu/yourls/feed/</wfw:commentRss> <slash:comments>86</slash:comments> </item> <item><title>创建自己域名的短网址服务</title><link>http://zou.lu/get-your-own-short-url/</link> <comments>http://zou.lu/get-your-own-short-url/#comments</comments> <pubDate>Mon, 18 May 2009 13:23:49 +0000</pubDate> <dc:creator>Showfom</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[Short Url]]></category> <category><![CDATA[短网址]]></category><guid isPermaLink="false">http://zou.lu/get-your-own-short-url/</guid> <description><![CDATA[作为 Web 2.0 必不可少的武器，短网址发展愈演愈烈。 本文讲的是利用国外的服务来创建自己域名的短网址，介绍三种方式： 1、利用 Google Apps 中的 Short Links GAE 项目 2、Awe.sm 3、优秀的开源程序 1、Google Apps 我就不详细介绍了，任平生翻译的这篇文章够详细，大家自己去看看即可。 优点：大公司，不用过多担心倒闭 缺点：什么时候 GFW 就不知道了 申请攻略：http://rpsh.net/archives/setup-tinyurl-like-redirection-service/ 演示：http://go.rpsh.net/tinyurl 2、Awe.sm 最近新起的一个短网址服务，可以用自己的域名来创建，不过还是Beta期，需要邀请码，貌似我还看到$99/year，这也太那啥了…… 申请地址:http://makeme.awe.sm/ 演示：http://awe.sm/DsF 优点：可以用自己的域名，要交钱是另一回事 缺点：毕竟服务用的是别人的，哪天死了你就不知道了。 3、开源程序篇 介绍两个开源程序，Phurl 和 Shorty 1.Phurl，这个安装复杂了点，居然要自己导入数据表，而且一下子就要60个表，随机生成URL，功能够用下载地址： http://www.hido.net/projects/phurl/ 演示地址：http://www.hido.net/projects/phurl/demo/qepfw6 PS：国内被墙了，我上传到了国内的网盘。 下载地址： http://www.uushare.com/user/showfom/file/1613457 SQL导入文件下载地址： http://www.uushare.com/user/showfom/file/1613459 2.Shorty，后台功能强大，可以自己试试 下载地址：http://get-shorty.com/shorty/ 演示地址：http://get-shorty.com/shorty/47533/ 国内网盘：http://www.uushare.com/user/showfom/file/1613458 下期将详细介绍介绍两个开源程序的使用。 相关文章AA.CX 短网址 WordPress 插件 (105)使用 Yourls 强化你的短网址系统 (86)20+国内外短网址大点评 [...]]]></description> <content:encoded><![CDATA[<p>作为 <strong>Web 2.0</strong> 必不可少的武器，短网址发展愈演愈烈。</p><p>本文讲的是利用国外的服务来创建自己域名的短网址，介绍三种方式：</p><p>1、利用 <strong>Google Apps</strong> 中的 <strong>Short Links  GAE</strong> 项目</p><p>2、<strong>Awe.sm</strong></p><p>3、优秀的开源程序</p><p><span id="more-43"></span></p><p><strong><span style="color: #ff8040;">1、Google Apps</span></strong></p><p>我就不详细介绍了，任平生翻译的<a title="创建自己的网址缩短服务" href="http://rpsh.net/archives/setup-tinyurl-like-redirection-service/"  class="external">这篇文章</a>够详细，大家自己去看看即可。</p><p>优点：大公司，不用过多担心倒闭</p><p>缺点：什么时候 <strong>GFW</strong> 就不知道了</p><p>申请攻略：<a title="创建自己的网址缩短服务" href="http://rpsh.net/archives/setup-tinyurl-like-redirection-service/" class="external">http://rpsh.net/archives/setup-tinyurl-like-redirection-service/</a></p><p>演示：<a title="自己的短网址演示" href="http://go.rpsh.net/tinyurl" class="external">http://go.rpsh.net/tinyurl</a></p><p><span style="color: #ff8040;"><strong>2、Awe.sm</strong></span></p><p>最近新起的一个短网址服务，可以用自己的域名来创建，不过还是Beta期，需要邀请码，貌似我还看到$99/year，这也太那啥了……</p><p>申请地址:<a title="Awe.sm 申请" href="http://makeme.awe.sm/" class="external">http://makeme.awe.sm/</a></p><p>演示：<a title="Awe.sm 演示" href="http://awe.sm/DsF" class="external">http://awe.sm/DsF</a></p><p>优点：可以用自己的域名，要交钱是另一回事</p><p>缺点：毕竟服务用的是别人的，哪天死了你就不知道了。</p><p><span style="color: #ff8040;"><strong>3、开源程序篇</strong></span></p><p>介绍两个开源程序，<a title="Phurl" href="http://www.hido.net/projects/phurl/" class="external"><strong>Phurl</strong></a> 和 <a title="Shorty" href="http://get-shorty.com/" class="external"><strong>Shorty</strong></a></p><p>1.<a href="http://www.hido.net/projects/phurl/">Phurl</a>，这个安装复杂了点，居然要自己导入数据表，而且一下子就要60个表，随机生成URL，功能够用下载地址： <a title="Phurl 下载" href="http://www.hido.net/projects/phurl/" class="external">http://www.hido.net/projects/phurl/</a></p><p>演示地址：<a title="Phurl 演示" href="http://www.hido.net/projects/phurl/demo/qepfw6" class="external">http://www.hido.net/projects/phurl/demo/qepfw6</a></p><p>PS：国内被墙了，我上传到了国内的网盘。<br /> 下载地址： <a title="Phurl 下载" href="http://www.uushare.com/user/showfom/file/1613457" class="external">http://www.uushare.com/user/showfom/file/1613457</a><br /> SQL导入文件下载地址： <a title="Phurl SQL导入文件下载" href="http://www.uushare.com/user/showfom/file/1613459" class="external">http://www.uushare.com/user/showfom/file/1613459</a></p><p>2.<a title="Shorty" href="http://get-shorty.com/" class="external">Shorty</a>，后台功能强大，可以自己试试</p><p>下载地址：<a title="Shorty 下载" href="http://get-shorty.com/shorty/" class="external">http://get-shorty.com/shorty/</a></p><p>演示地址：<a title="Shorty 下载" href="http://get-shorty.com/shorty/47533/" class="external">http://get-shorty.com/shorty/47533/</a></p><p>国内网盘：<a title="Shorty 下载" href="http://www.uushare.com/user/showfom/file/1613458" class="external">http://www.uushare.com/user/showfom/file/1613458</a></p><p>下期将详细介绍介绍两个开源程序的使用。</p><h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://zou.lu/aacx-wordpress-plugin/" title="AA.CX 短网址 WordPress 插件">AA.CX 短网址 WordPress 插件</a> (105)</li><li><a href="http://zou.lu/yourls/" title="使用 Yourls 强化你的短网址系统">使用 Yourls 强化你的短网址系统</a> (86)</li><li><a href="http://zou.lu/short-url/" title="20+国内外短网址大点评">20+国内外短网址大点评</a> (34)</li><li><a href="http://zou.lu/ulshort/" title="uLShort &#8211; 免费开源功能强大的短网址程序">uLShort &#8211; 免费开源功能强大的短网址程序</a> (89)</li><li><a href="http://zou.lu/who-translated-my-post/" title="WoW！哪个好心人居然翻译了我的文章？">WoW！哪个好心人居然翻译了我的文章？</a> (10)</li><li><a href="http://zou.lu/untiny/" title="反其道而行之 &#8211; 偏不让你用短网址">反其道而行之 &#8211; 偏不让你用短网址</a> (13)</li><li><a href="http://zou.lu/pretty-link/" title="Pretty Link 又一款WordPress短网址插件">Pretty Link 又一款WordPress短网址插件</a> (26)</li></ul><hr /><div style="padding: 5px 10px; background: rgb(243, 245, 252) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><p>© from <a href="//zou.lu/?from=feed">走点路博客</a>, 2009/05/18. | <a href="http://zou.lu/get-your-own-short-url/">创建自己域名的短网址服务</a> | <a href="http://zou.lu/get-your-own-short-url/#comments">30 只留言鸟</a> <br /> Tags： <a href="http://zou.lu/tags/short-url/" rel="tag">Short Url</a>, <a href="http://zou.lu/tags/%e7%9f%ad%e7%bd%91%e5%9d%80/" rel="tag">短网址</a> | <a href="//zou.lu/?p=43">Link</a> | <a href="http://zi.mu/domain"><font color="red">.me 域名全国最低价，首年仅需40元，续费130元促销中！</font></a></p></div>]]></content:encoded> <wfw:commentRss>http://zou.lu/get-your-own-short-url/feed/</wfw:commentRss> <slash:comments>30</slash:comments> </item> <item><title>20+国内外短网址大点评</title><link>http://zou.lu/short-url/</link> <comments>http://zou.lu/short-url/#comments</comments> <pubDate>Sun, 19 Apr 2009 13:34:09 +0000</pubDate> <dc:creator>Showfom</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[Short Url]]></category> <category><![CDATA[短网址]]></category> <category><![CDATA[缩短网址]]></category><guid isPermaLink="false">http://zou.lu/short-url/</guid> <description><![CDATA[短网址（Short URL），顾名思义，就是把一个比较长的网址缩短成一个比较短的网址，通常用的是asp或者php转向，很简单的程序，在Web 2.0的今天，不得不说，这是一个潮流。 本文将介绍如何使用国内外短网址，和如何用自己的域名建立一个短网址系统 我自己建立的： 可靠 安全 速度快 网址绝对短 http://zi.mu/ http://aa.cx/ http://ye.pe/ 国外篇： 0、ShortURL ShortURL才是所有短网址的鼻祖，大概在04年前后就听说过，不知道现在能不能访问，而且还能提供一系列的类似yourname.shorturl.com二级转向域名，真的很不错，可惜，被国内GFW了，所以，只能排名0 演示： http://alturl.com/nvnh http://preview.alturl.com/nvnh http://alturl.com/nvnh/pw=ta9eM 地址：http://shorturl.com/ 1、TinyURL TinyURL是Web 2.0短网址的鼻祖，不过我影响里应该有更早的，更早的都是免费二级域名三级域名形式，扩展性很少，所以，这个时候，TinyURL形式的短网址就出现了，不得不说，TinyURL的历史和影响力确实很大，无数网站模仿它，无数网站使用TinyURL形式，TwitterFeed也采用TinyURL形式，而且可以自定义URL，但是，TinyURL曾经被MSN屏蔽，太多无耻的用户利用TinyURL转向到带有木马的页面，哎……所以不得不说互联网是一把双刃剑。 演示：http://tinyurl.com/showfom/ 地址：http://tinyurl.com/ 2、Bit.Ly 不同于TinyURL，Bit.Ly真正的整合了用户，可以自定义URL，可以注册用户，可以管理自己的URL，可以查看URL的访问次数，还提供了一系列Web 2.0工具：http://j.mp/pages/tools 以后我会逐一介绍。 演示：http://j.mp/showfom 地址：http://bit.ly/ 3、Is.Gd 演示：http://is.gd/thmu 地址：http://is.gd/ Is.Gd = is good，也比较流行，但是不能自定义URL，不能注册用户管理自己的URL，但是总的来说很简洁，值得一试。 4、shorl.com 这个短网址生成的网址并不短，但是需要密码访问，这个功能很独特，还能给你一个访问次数统计的页面，当然密码都是随机生成的。 演示： http://shorl.com/dribigrofrastapi Password: sepagatylystiha Direct URL to statistics (contains password; use with caution): http://shorl.com/stat.php?id=dribigrofrastapi&#38;pwd=sepagatylystiha 地址：http://shorl.com/ [...]]]></description> <content:encoded><![CDATA[<p>短网址（Short URL），顾名思义，就是把一个比较长的网址缩短成一个比较短的网址，通常用的是asp或者php转向，很简单的程序，在Web 2.0的今天，不得不说，这是一个潮流。</p><p>本文将介绍如何使用国内外短网址，和如何用自己的域名建立一个短网址系统</p><p><span id="more-24"></span></p><p>我自己建立的：</p><p>可靠 安全 速度快 网址绝对短</p><p><a href="http://zi.mu/">http://zi.mu/</a><br /> <a href="http://aa.cx/">http://aa.cx/</a><br /> <a href="http://ye.pe/">http://ye.pe/</a></p><p>国外篇：</p><p>0、ShortURL</p><p>ShortURL才是所有短网址的鼻祖，大概在04年前后就听说过，不知道现在能不能访问，而且还能提供一系列的类似yourname.shorturl.com二级转向域名，真的很不错，可惜，被国内GFW了，所以，只能排名0</p><p>演示：</p><p><a title="http://alturl.com/nvnh" href="http://alturl.com/nvnh">http://alturl.com/nvnh</a></p><p><a title="http://preview.alturl.com/nvnh" href="http://preview.alturl.com/nvnh">http://preview.alturl.com/nvnh</a></p><p><a title="http://alturl.com/nvnh/pw=ta9eM" href="http://alturl.com/nvnh/pw=ta9eM">http://alturl.com/nvnh/pw=ta9eM</a></p><p>地址：<a href="http://shorturl.com/">http://shorturl.com/</a></p><p>1、TinyURL</p><p>TinyURL是Web 2.0短网址的鼻祖，不过我影响里应该有更早的，更早的都是免费二级域名三级域名形式，扩展性很少，所以，这个时候，TinyURL形式的短网址就出现了，不得不说，TinyURL的历史和影响力确实很大，无数网站模仿它，无数网站使用TinyURL形式，TwitterFeed也采用TinyURL形式，而且可以自定义URL，但是，TinyURL曾经被MSN屏蔽，太多无耻的用户利用TinyURL转向到带有木马的页面，哎……所以不得不说互联网是一把双刃剑。</p><p>演示：<a href="http://tinyurl.com/showfom/">http://tinyurl.com/showfom/</a></p><p>地址：<a href="http://tinyurl.com/">http://tinyurl.com/</a></p><p>2、Bit.Ly</p><p>不同于TinyURL，Bit.Ly真正的整合了用户，可以自定义URL，可以注册用户，可以管理自己的URL，可以查看URL的访问次数，还提供了一系列Web 2.0工具：<a title="http://j.mp/pages/tools" href="http://j.mp/pages/tools">http://j.mp/pages/tools</a> 以后我会逐一介绍。</p><p>演示：<a title="http://j.mp/showfom" href="http://j.mp/showfom">http://j.mp/showfom</a></p><p>地址：<a href="http://j.mp/">http://bit.ly/</a></p><p>3、Is.Gd</p><p>演示：<a title="http://is.gd/thmu" href="http://is.gd/thmu">http://is.gd/thmu</a></p><p>地址：<a href="http://is.gd/">http://is.gd/</a></p><p>Is.Gd = is good，也比较流行，但是不能自定义URL，不能注册用户管理自己的URL，但是总的来说很简洁，值得一试。</p><p>4、shorl.com</p><p>这个短网址生成的网址并不短，但是需要密码访问，这个功能很独特，还能给你一个访问次数统计的页面，当然密码都是随机生成的。</p><p>演示： <a href="http://shorl.com/dribigrofrastapi">http://shorl.com/dribigrofrastapi</a><br /> Password: sepagatylystiha</p><p>Direct URL to statistics (contains password; use with caution):<br /> <a href="http://shorl.com/stat.php?id=dribigrofrastapi&amp;pwd=sepagatylystiha">http://shorl.com/stat.php?id=dribigrofrastapi&amp;pwd=sepagatylystiha</a></p><p>地址：<a title="http://shorl.com/" href="http://shorl.com/">http://shorl.com/</a></p><p>5、doiop.com</p><p>这个短网址也能自定义URL，但是怎么看怎么便扭，谁能记住Doiop？</p><p>演示：<a title="http://doiop.com/showfom" href="http://doiop.com/showfom">http://doiop.com/showfom</a></p><p>地址：<a title="http://doiop.com/" href="http://doiop.com/">http://doiop.com/</a></p><p>6、6url.com</p><p>这个服务不错，一次性生成三个不同类型的URL，一个是带www的，一个是不带www的，一个是二级域名形式，而且都能自定义URL</p><p>演示：</p><p><a href="http://www.6url.com/showfom">http://www.6url.com/showfom</a></p><p><a href="http://showfom.6url.com/">http://showfom.6url.com/</a></p><p><a href="http://6url.com/showfom">http://6url.com/showfom</a></p><p>地址：<a title="http://6url.com/" href="http://6url.com/">http://6url.com/</a></p><p>7、DigBig.com</p><p>与其他服务不同是，DigBig.com必须注册，但是方便管理，而且注册用户的时候只要填写一个email即可，密码是随机的，可惜不能自定义URL</p><p>演示：<a title="http://digbig.com/4ypwp" href="http://digbig.com/4ypwp">http://digbig.com/4ypwp</a></p><p>地址：<a title="http://web.digbig.com/urls/shorten.php" href="http://web.digbig.com/urls/shorten.php">http://web.digbig.com/urls/shorten.php</a></p><p>8、Link.By</p><p>不能自定义URL，只能说URL确实很短。</p><p>演示：<a title="http://LNK.BY/aci" href="http://LNK.BY/aci">http://LNK.BY/aci</a></p><p>地址：<a title="http://lnk.by/" href="http://lnk.by/">http://lnk.by/</a></p><p>9、Link.in</p><p>不能自定义URL，而且讨厌的是，必须注册，还得验证Email</p><p>演示:<a title="http://lnk.in/6qgb" href="http://lnk.in/6qgb">http://lnk.in/6qgb</a></p><p>地址：<a title="http://lnk.in/" href="http://lnk.in/">http://lnk.in/</a></p><p>10、Yep.it</p><p>可以自定义URL，很不错，网址也很短的说</p><p>演示：<a href="http://yep.it/showfom">http://yep.it/showfom</a></p><p>地址：<a title="http://yep.it/" href="http://yep.it/">http://yep.it/</a></p><p>11、Yatuc.com</p><p>不能自定义URL，但是可以设置一个密码访问转向页面</p><p>演示：</p><p><a title="http://yatuc.com/wny" href="http://yatuc.com/wny">http://yatuc.com/wny</a></p><p><a title="http://yatuc.com/wny,preview" href="http://yatuc.com/wny,preview">http://yatuc.com/wny,preview</a></p><p><a title="http://yatuc.com/wny,stats" href="http://yatuc.com/wny,stats">http://yatuc.com/wny,stats</a></p><p>地址：<a title="http://yatuc.com/" href="http://yatuc.com/">http://yatuc.com/</a></p><p>12、w3t.org</p><p>这个服务不错，可以自定义URL，可以设定密码，还有一些额外的服务，并且支持注册用户来管理自己的URL。</p><p>演示：<a title="http://w3t.org/Showfom" href="http://w3t.org/Showfom">http://w3t.org/Showfom</a></p><p>地址:<a title="http://w3t.org/" href="http://w3t.org/">http://w3t.org/</a></p><p>13、Urlx.org</p><p>很简洁，没一丝广告，只有一个输入URL的窗口，其实，我想，这才是Web 2.0的本质吧。</p><p>演示：<small><a href="http://urlx.org/icanhaz">http://urlx.org/icanhaz</a></small></p><p>地址：<a title="http://urlx.org/" href="http://urlx.org/">http://urlx.org/</a></p><p>14、UrlCut.com</p><p>可以自定义URL，可以自己设定密码，可以一次性增加多个URL，嗯，就是域名长了点。</p><p>演示：<a title="http://urlcut.com/showfom" href="http://urlcut.com/showfom">http://urlcut.com/showfom</a></p><p>地址：<a title="http://urlcut.com/" href="http://urlcut.com/">http://urlcut.com/</a></p><p>15、SimURL.com</p><p>也很简洁，不能自定义URL</p><p>演示：<a title="http://simurl.com/kukkor" href="http://simurl.com/kukkor">http://simurl.com/kukkor</a></p><p>地址：<a title="http://simurl.com/" href="http://simurl.com/">http://simurl.com/</a></p><p>16、SnipURL.com</p><p>不错，有中文版，还能自定义Title（就是用了个frame框架呗），能自定义密码</p><p>演示：<a title="http://snipurl.com/showfom" href="http://snipurl.com/showfom">http://snipurl.com/showfom</a></p><p>地址：<a title="http://www.snipurl.com/" href="http://www.snipurl.com/">http://www.snipurl.com/</a></p><p>17、ShURL.net</p><p>必须注册，不能自定义URL，但是可以隐藏URL（就是frame框架）</p><p>演示：<a href="http://shurl.net/civ">http://shurl.net/civ</a></p><p>地址：<a title="http://shurl.net/" href="http://shurl.net/">http://shurl.net/</a></p><p>18、MetaMark.net</p><p>貌似可以一次性输入多个URL，可以自定义URL，可以自定义密码</p><p>演示：<a title="http://xrl.us/showfom" href="http://xrl.us/showfom">http://xrl.us/showfom</a></p><p>地址：<a title="http://www.metamark.net/" href="http://www.metamark.net/">http://www.metamark.net/</a></p><p>19、Dot.tk</p><p>这个才是最牛的，能提供yourname.tk，不过貌似多少天不点击就会删除你的域名，推荐你注册一下，这样提供的服务更好，有中文版，不过国内访问有时候不正常</p><p>演示：<a title="http://purl.oclc.org/showfom/" href="http://showfom.tk/">http://showfom.tk/</a></p><p>地址：<a title="http://www.dot.tk/" href="http://www.dot.tk/">http://www.dot.tk/</a></p><p>20、Here.is</p><p>必须注册，email认证，然后可以自定义URL，但是不是通常的转向，而是一个HTTP转向，过5秒才能到达目标页面，额……为了广告呗。</p><p>演示：<a title="http://here.is/showfom" href="http://here.is/showfom">http://here.is/showfom</a></p><p>地址：<a title="http://here.is/" href="http://here.is/">http://here.is/</a></p><p>21、ubb.cc</p><p>严格说，这个不是一个短网址了，而是一个二级域名提供商，而且有广告，必须注册，email认证，额……</p><p>演示：<a title="http://showfom.ubb.cc/" href="http://showfom.ubb.cc/">http://showfom.ubb.cc/</a></p><p>地址：<a title="http://ubb.cc/" href="http://ubb.cc/">http://ubb.cc/</a></p><p>22、CowURL.com</p><p>可以自定义URL，可以自定义二级域名，而且Ajax生成，真的很推荐他！</p><p>演示：<a href="http://showfom.cowurl.com">http://showfom.cowurl.com</a></p><p>地址：<a href="http://www.cowurl.com">http://www.cowurl.com</a></p><p>23、R.IM</p><p>感谢NetPuter童鞋推荐的r.im，真的很短，但是，貌似是直接来个数字的，感觉不爽，还有官方的<a href="http://r.im/api.cfm">API</a>，还有<a href="http://r.im/index.cfm?lang=cn">中文版</a></p><p>演示：<a href="http://r.im/533">http://r.im/533</a></p><p>地址：<a href="http://r.im/">http://r.im/</a></p><p>24、To.Ly</p><p>今天推荐的最后一款国外短网址，真的，真的很短，尽管不能自定义URL，尽管……但是真的很短，还提供了<a href="http://to.ly/api_info.php" target="_blank">API</a>工具</p><p>演示：<a title="http://to.ly/1BL" href="http://to.ly/1BL">http://to.ly/1BL</a></p><p>地址：<a title="http://to.ly/" href="http://to.ly/">http://to.ly/</a></p><p>国内篇：</p><p>1、aa.cx</p><p>这个是我自己做的</p><p>演示：<a title="http://aa.cx/ssh" href="http://aa.cx/ssh">http://aa.cx/ssh</a></p><p>地址：<a title="http://aa.cx/" href="http://aa.cx/">http://aa.cx/</a></p><p>2、topduan.com</p><p>不过，这个地址也太长了点吧，可以注册用户，速度还行，不过我用Firefox加了一个短网址怎么都找不到自己的，还是通过推测才得出自己的短网址，可以自定义URL</p><p>演示：<a title="http://topduan.cn/p.showfom" href="http://topduan.cn/p.showfom">http://topduan.cn/p.showfom</a></p><p>地址：<a title="http://www.topduan.cn/duan/" href="http://www.topduan.cn/duan/">http://www.topduan.cn/duan/</a></p><p>3、xsurl.cn</p><p>可以自定义URL，速度不错，但是URL形式是带有一个?号的，不美观。</p><p>演示：<a title="http://xsurl.cn/?showfom" href="http://xsurl.cn/?showfom">http://xsurl.cn/?showfom</a></p><p>地址：<a title="http://xsurl.cn/?showfom" href="http://xsurl.cn/">http://xsurl.cn/</a></p><p>4、dwz.tw</p><p>台湾的服务，不能自定义服务，不能注册用户，提供了IE扩展，速度还不错，是asp.net构建的。</p><p>演示：<a title="http://dwz.tw/8xlg" href="http://dwz.tw/8xlg">http://dwz.tw/8xlg</a></p><p>地址：<a title="http://dwz.tw/" href="http://dwz.tw/">http://dwz.tw/</a></p><p>5、duanwz.com</p><p>国内的服务，比较不错，能注册用户并且管理观看统计之类，能自定义URL，还提供过一个Windows Live Writer插件，而且，和其他短网址不同的是，可以提供一个需要输入密码才能访问的转向页面，不过是不是多余了点？</p><p>演示：<a title="http://duanwz.com/showfom" href="http://duanwz.com/showfom">http://duanwz.com/showfom</a></p><p>地址：<a title="http://duanwz.com/" href="http://duanwz.com/">http://duanwz.com/</a></p><p>6、PPT.cc</p><p>不能自定义URL，可以设定密码，而且能自动复制你建立的短网址，这个功能比较人性化。</p><p>演示：<a title="http://ppt.cc/5zYy" href="http://ppt.cc/5zYy">http://ppt.cc/5zYy</a></p><p>地址：<a title="http://ppt.cc/" href="http://ppt.cc/">http://ppt.cc/</a></p><p>7、0rz.TW</p><p>台湾的？不过只能缩短一定长度的网址，囧，咱网址短了点就不让缩短了？但是这个服务有一系列<a href="http://briian.com/?p=4330" target="_blank">攻略</a></p><p>演示：<a title="http://0rz.tw/ZwU1b" href="http://0rz.tw/ZwU1b">http://0rz.tw/ZwU1b</a></p><p>地址：<a title="http://0rz.tw/" href="http://0rz.tw/">http://0rz.tw/</a></p><p>8、zi.mu</p><p>这半年一直在推广字母短网址，yourls打造</p><p>演示：<a title="http://zi.mu/1" href="http://zi.mu/1">http://zi.mu/1</a></p><p>地址：<a title="http://zi.mu/" href="http://zi.mu/">http://zi.mu/</a></p><blockquote><p>国内外的介绍完毕，实在太多了，而且我不看好国内，不光是备案等原因，更因为什么时候被关闭都会不知道，比如曾经风靡一时的go.6.cn，下面我介绍一下怎么自己做一个短网址网站</p></blockquote><p>DIY篇：</p><p>1、独立程序</p><p>详见：</p><p><a href="http://zou.lu/yourls/">http://zou.lu/yourls/</a></p><p><a href="http://zou.lu/ulshort/">http://zou.lu/ulshort/</a></p><p>还有一款 <a href="http://get-shorty.com/" target="_blank">Shorty</a> ，以后会介绍开源的 short url 程序</p><p>2、WordPress篇</p><p>WordPress中也可以使用一些插件满足自己短网址的需求，使用 WordPress ShortUrl Plugin 插件，下载地址<a title="http://wordpress.org/extend/plugins/short-url-plugin/" href="http://wordpress.org/extend/plugins/short-url-plugin/">http://wordpress.org/extend/plugins/short-url-plugin/</a></p><p>使用方法：</p><p>1、解压 <strong>short-url.php</strong> 和 <strong>u.php</strong> 两个文件到 <strong>/wp-content/plugins/</strong> 文件夹</p><p>2、后台激活</p><p>3、开始使用</p><p>注意事项：</p><p>永久链接别设置成 %postid% 形式，文章的 slug 别用纯数字，因为一个.htaccess的301转向只能对应一个，比如说，你用了xxx.com/1 来301转向 yyy.com ，那么你就不能用 xxx.com/1 成为你的文章 就算 xxx.com/x/1 也不行 所以这个插件适合一开始就使用，<a href="http://www.appinn.com/short-url-plugin-wordpress/" target="_blank">小众软件</a>就用的这个插件</p><p>3、API篇</p><p>推荐使用<a href="http://www.gracecode.com/archives/2171/">gracecode.com</a>编写的程序，可以自动生成七个短网址服务，bit.ly, cli.gs , kl.am , is.gd, sniprl.com, poprl.com和short.ie</p><p>演示：</p><p><a href="http://bit.ly/rDJDo">http://bit.ly/rDJDo</a></p><p><a href="http://cli.gs/aGLdM9">http://cli.gs/aGLdM9</a></p><p><a href="http://is.gd/thmu">http://is.gd/thmu</a></p><p><a href="http://kl.am/jlW">http://kl.am/jlW</a></p><p><a href="http://poprl.com/1LnN">http://poprl.com/1LnN</a></p><p><a href="http://short.ie/e7e6eo">http://short.ie/e7e6eo</a></p><p><a href="http://snipr.com/ib5bm">http://snipr.com/ib5bm</a></p><p>地址：<a href="http://lab.gracecode.com/url_zipper/">http://lab.gracecode.com/url_zipper/</a></p><h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://zou.lu/aacx-wordpress-plugin/" title="AA.CX 短网址 WordPress 插件">AA.CX 短网址 WordPress 插件</a> (105)</li><li><a href="http://zou.lu/yourls/" title="使用 Yourls 强化你的短网址系统">使用 Yourls 强化你的短网址系统</a> (86)</li><li><a href="http://zou.lu/get-your-own-short-url/" title="创建自己域名的短网址服务">创建自己域名的短网址服务</a> (30)</li><li><a href="http://zou.lu/ulshort/" title="uLShort &#8211; 免费开源功能强大的短网址程序">uLShort &#8211; 免费开源功能强大的短网址程序</a> (89)</li><li><a href="http://zou.lu/who-translated-my-post/" title="WoW！哪个好心人居然翻译了我的文章？">WoW！哪个好心人居然翻译了我的文章？</a> (10)</li><li><a href="http://zou.lu/untiny/" title="反其道而行之 &#8211; 偏不让你用短网址">反其道而行之 &#8211; 偏不让你用短网址</a> (13)</li><li><a href="http://zou.lu/pretty-link/" title="Pretty Link 又一款WordPress短网址插件">Pretty Link 又一款WordPress短网址插件</a> (26)</li></ul><hr /><div style="padding: 5px 10px; background: rgb(243, 245, 252) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><p>© from <a href="//zou.lu/?from=feed">走点路博客</a>, 2009/04/19. | <a href="http://zou.lu/short-url/">20+国内外短网址大点评</a> | <a href="http://zou.lu/short-url/#comments">34 只留言鸟</a> <br /> Tags： <a href="http://zou.lu/tags/short-url/" rel="tag">Short Url</a>, <a href="http://zou.lu/tags/%e7%9f%ad%e7%bd%91%e5%9d%80/" rel="tag">短网址</a>, <a href="http://zou.lu/tags/%e7%bc%a9%e7%9f%ad%e7%bd%91%e5%9d%80/" rel="tag">缩短网址</a> | <a href="//zou.lu/?p=24">Link</a> | <a href="http://zi.mu/domain"><font color="red">.me 域名全国最低价，首年仅需40元，续费130元促销中！</font></a></p></div>]]></content:encoded> <wfw:commentRss>http://zou.lu/short-url/feed/</wfw:commentRss> <slash:comments>34</slash:comments> </item> </channel> </rss>