<?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>DIY &#8211; 任平生</title>
	<atom:link href="https://rpsh.net/tag/diy/feed/" rel="self" type="application/rss+xml" />
	<link>https://rpsh.net</link>
	<description>待从头</description>
	<lastBuildDate>Tue, 18 May 2010 05:01:27 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>创建自己的网址缩短服务</title>
		<link>https://rpsh.net/archives/setup-tinyurl-like-redirection-service/</link>
					<comments>https://rpsh.net/archives/setup-tinyurl-like-redirection-service/#comments</comments>
		
		<dc:creator><![CDATA[任平生]]></dc:creator>
		<pubDate>Mon, 18 May 2009 02:00:00 +0000</pubDate>
				<category><![CDATA[奇技淫巧]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[Google Apps]]></category>
		<category><![CDATA[原创]]></category>
		<category><![CDATA[短网址]]></category>
		<guid isPermaLink="false">http://rpsh.net/?p=273</guid>

					<description><![CDATA[使用 Google Short URLs 搭建自己的网址缩短服务，详细教程及使用方法]]></description>
										<content:encoded><![CDATA[<p>随着 <a class="external" href="https://twitter.com/rpsh" target="_blank">Twitter</a> 等微博客兴起，网址缩短服务再次受到人们的青睐。甚至连纽约时报都开始为自己官方网站(nytimes.com)文章提供“可信赖”的网址缩短：NytUrl.com 。而面对众多的网址缩短服务，有没有想过使用自己的 域名 来缩短网址呢？</p>
<p>比如 <a href="http://go.rpsh.net/windows7">http://go.rpsh.net/windows7</a> ， <a href="http://go.rpsh.net/tinyurl">http://go.rpsh.net/tinyurl</a>&#160;</p>
<p><span id="more-273"></span></p>
<p>答案是肯定的，而且非常简单。</p>
<p>利用 Google Apps 中的 Short Links&#160; GAE 项目，我们只需要一个域名就能轻松搭建属于自己的<a href="https://rpsh.net/archives/setup-tinyurl-like-redirection-service/" target="_blank">网址缩短</a>服务， 并且是免费的，Google 为我们提供技术支持和服务托管！</p>
<h2>创建网址缩短服务详细步骤</h2>
<div class="entryhline"></div>
<ol>
<li>使用你的域名注册 Google Apps： <a class="external" href="http://www.google.com/a/help/intl/zh-CN/admins/editions_spe.html" target="_blank">Google Apps 注册入口</a>； （ cn 域名不能直接注册，你可以搜索了解如何使用 cn 域名注册 Google Apps ）  <br />详细的 Google Apps 注册教程网络上很多这里不再赘述。 </li>
<li>注册完成后，在 Google Apps 控制台 “域名设置” 下的“控制面板”一项选择“下一代（仅限美式英文）”，保存。 （因为添加 GAE 应用只有“下一代英文版”的 Google Apps 才支持）     <br /><img decoding="async" style="display: inline" title="Google Apps 域名设置 - 任平生@rpsh.net" alt="Google Apps 域名设置" src="http://lh3.ggpht.com/_aLmNmqD0H4M/SgCgllk0riI/AAAAAAAAA3k/B9yj8vscN1Y/s800/domain-setting.png" width="526" height="316" /> </li>
<li>打开 <a class="external" href="http://www.google.com/enterprise/marketplace/viewListing?productListingId=5143210+6352879591152674960" target="_blank">Google Short Links</a> ，点击 “Add it now” ，输入你的域名，比如 rpsh.net ，此时会要求你使用 Google Apps 帐号登录（注意此帐号非Gmail 帐号，为你注册 Google Apps 时为你的域名创建的管理员帐号） </li>
<li>接下来为你的网址缩短服务设置一个网址，比如 go.rpsh.net ：  <br /><img decoding="async" loading="lazy" style="display: inline" title="设置 Short Links 网址 - 任平生@rpsh.net" alt="设置 Short Links 网址" src="http://lh6.ggpht.com/_aLmNmqD0H4M/SgCgkwtixZI/AAAAAAAAA3U/_T1BnY_tPuo/s800/designate-a-web-address.png" width="526" height="145" /> </li>
<li>到你域名注册商那里，为这个二级域名绑定 CNAME， 比如我把 go.rpsh.net 绑定 CNAME ： google.dns.tancee.com.&#160; （感谢<a class="external" href="http://blog.tancee.com/ghs" target="_blank">Tancee</a> 提供）    <br /><img decoding="async" loading="lazy" style="display: inline" title="添加 CNAME 记录 - 任平生@rpsh.net" alt="添加 CNAME 记录" src="http://lh6.ggpht.com/_aLmNmqD0H4M/SgCglG4NZMI/AAAAAAAAA3c/WAuNsMEkXGg/s800/cname.png" width="526" height="50" />     <br />这里没有使用 Google 的 ghs.google.com 因为这个地址经常被墙（奇怪的是今天我测试的时候 ghs.google.com 竟然没被墙干掉，看来我可以去买彩票了） </li>
<li>等待 DNS 设置生效（ 国内域名注册商的话可能需要24小时才能生效 :mad:&#160; ） </li>
<li>等你的域名的 DNS 生效后，在 Google Apps 控制台的 Service Setting 下选择 Short Links，然后点击 Additional Settings 进入 Short Links 设置页     <br /><img decoding="async" loading="lazy" style="display: inline" title="Short Links 选项设置 - 任平生@rpsh.net" alt="Short Links 选项设置" src="http://lh3.ggpht.com/_aLmNmqD0H4M/SgCgkrfUtmI/AAAAAAAAA3M/hhGnOrGLHMI/s800/additional-settings.png" width="526" height="246" /> </li>
<li>设置页面提供了一些可供选择的设置项：&#160; （点击查看大图）     <br /><a href="http://lh5.ggpht.com/_aLmNmqD0H4M/ShCNMbFTJkI/AAAAAAAAA5k/MQLoevSuabM/s800/settings.png" target="_blank"><img decoding="async" loading="lazy" style="display: inline" title="Short Links 选项设置详细说明 - 任平生@rpsh.net" alt="Short Links 选项设置详细说明" src="http://lh3.ggpht.com/_aLmNmqD0H4M/ShCNMfKBqGI/AAAAAAAAA5o/rMQ4rwIzeZY/s800/settings-th.png" width="526" height="315" /></a> </li>
<li>在 Access restrictions 里取消 “Users must be logged in to use this tool ” 前边的勾，即可<strong>开放此网址缩短服务</strong>。任何人都可以通过访问 如 go.rpsh.net 的页面来使用这个网址缩短工具 </li>
</ol>
<h2>网址缩短服务的使用</h2>
<div class="entryhline"></div>
<ul style="list-style-type: lower-roman">
<li>访问你的 Short Links 网址，如 go.rpsh.net ，这里提供了两种网址缩短方式 <img decoding="async" loading="lazy" style="display: inline" title="添加 网址缩短" alt="添加 网址缩短" src="http://lh3.ggpht.com/_aLmNmqD0H4M/SgCgsTrR3NI/AAAAAAAAA38/dYlrm4BGllw/s800/add-short-link.png" width="526" height="144" />     <br />一种是可以自定义缩短链接的尾部；一种是类似 TinyUrl.com 那种自动生成一个缩短链接（Hashed Link） </li>
<li>除了上述这种缩短网址的方法，Short Links 还提供有快速应用的小书签（<a href="https://rpsh.net/tag/bookmarklet/" target="_blank">Bookmarklet</a>）， 你可以将这个小书签拖到书签栏（或添加到收藏夹）方便平时使用。（注意勾选/选择 public ） </li>
<li>网址缩短后，并没有明显的提示缩短链接是什么，你可以在完成提示上点右键，选择“复制链接”来获得缩短后的链接地址：     <br /><img decoding="async" loading="lazy" style="display: inline" title="复制缩短后的链接地址 - 任平生@rpsh.net" alt="复制缩短后的链接地址" src="http://lh6.ggpht.com/_aLmNmqD0H4M/ShCJx8naTlI/AAAAAAAAA5g/LJC2ZlWy0yo/s800/copy-tinyurl.png" width="526" height="257" /> </li>
<li>点击页面右上方的 My Links 可以查看缩短过的网址及被访问的次数，以及编辑、删除缩短的网址：<img decoding="async" loading="lazy" style="display: inline" title="My Links：使用此工具缩短的网址 - 任平生@rpsh.net" alt="My Links：使用此工具缩短的网址" src="http://lh3.ggpht.com/_aLmNmqD0H4M/SgCgsiwEC2I/AAAAAAAAA4E/NYGgug2ZGhI/s800/my-links.png" width="526" height="259" /> </li>
</ul>
<p>来源：<a href="http://www.labnol.org/internet/setup-tinyurl-like-redirection-service/8333/" target="_blank" class="external">Setup Your Own TinyURL Like Redirection Service in 2 Minutes</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://rpsh.net/archives/setup-tinyurl-like-redirection-service/feed/</wfw:commentRss>
			<slash:comments>60</slash:comments>
		
		
			</item>
	</channel>
</rss>
