<?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; 域名</title>
	<atom:link href="http://zhiqiang.org/blog/tag/%e5%9f%9f%e5%90%8d/feed" rel="self" type="application/rss+xml" />
	<link>http://zhiqiang.org/blog</link>
	<description>理工科背景的证券从业人员</description>
	<lastBuildDate>Sun, 05 Feb 2012 03:59:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>昂首跨步走进白名单时代</title>
		<link>http://zhiqiang.org/blog/scribble/whitelist-era-is-coming.html</link>
		<comments>http://zhiqiang.org/blog/scribble/whitelist-era-is-coming.html#comments</comments>
		<pubDate>Sun, 20 Dec 2009 07:53:32 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[杂文]]></category>
		<category><![CDATA[信息审查]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/scribble/whitelist-era-is-coming.html</guid>
		<description><![CDATA[博客 » 杂文 » 信息审查 » 不知道有多少人注意到最近一条新闻 中国将采取五项措施规范域名注册 from 新华社 … 对网站未备案的域名不予解析（含跳转） 自此，我们将进入伟大的白名单时代，争取把自己的域名加入到这个白名单吧。 参考阅读：寂静之城，一九八四 相关文章同一WordPress的blog可拥有多个域名重新启用域名zhiqiang.orgphproxy &#038; free door (附下载)&#8220;谷歌&#8221;在...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/scribble">杂文</a> » <a href='http://zhiqiang.org/blog/tag/%e4%bf%a1%e6%81%af%e5%ae%a1%e6%9f%a5'>信息审查</a>  » </p><p>不知道有多少人注意到最近一条新闻</p>
<blockquote><p><a href="http://news.xinhuanet.com/fortune/2009-12/17/content_12663192.htm">中国将采取五项措施规范域名注册</a> from 新华社</p>
<p>…</p>
<p><strong>对网站未备案的域名不予解析（含跳转）</strong></p>
</blockquote>
<p>自此，我们将进入伟大的白名单时代，争取把自己的域名加入到这个白名单吧。</p>
<p>参考阅读：<a href="http://www.douban.com/group/topic/5221588/" target="_blank">寂静之城</a>，<a href="http://book.douban.com/subject/1082387/" target="_blank">一九八四</a></p>
<div><h4>相关文章</h4><ul><li><a href="http://zhiqiang.org/blog/it/wordpress-blog-has-different-domains.html">同一WordPress的blog可拥有多个域名</a></li><li><a href="http://zhiqiang.org/blog/memopad/use-zhiqiang-org-again.html">重新启用域名zhiqiang.org</a></li><li><a href="http://zhiqiang.org/blog/resource/free-door-phproxy.html">phproxy &#038; free door (附下载)</a></li><li><a href="http://zhiqiang.org/blog/scribble/guge-is-not-google-china.html">&ldquo;谷歌&rdquo;在中国：他不是Google</a></li><li><a href="http://zhiqiang.org/blog/scribble/news-about-google-out-china.html">关于Google退出中国的报道</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2009. | <a href="http://zhiqiang.org/blog/scribble/whitelist-era-is-coming.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/scribble/whitelist-era-is-coming.html#comments">10 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/scribble/whitelist-era-is-coming.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>重新启用域名zhiqiang.org</title>
		<link>http://zhiqiang.org/blog/memopad/use-zhiqiang-org-again.html</link>
		<comments>http://zhiqiang.org/blog/memopad/use-zhiqiang-org-again.html#comments</comments>
		<pubDate>Mon, 07 Dec 2009 14:03:25 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[记事本]]></category>
		<category><![CDATA[主机]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/?p=966</guid>
		<description><![CDATA[博客 » 记事本 » 主机 » 收到Yahoo的来信，yueweitang.org域名将于1个月内过期，只好重新启用域名 zhiqiang.org 之前停用 zhiqiang.org 是因为备案接入商错误（而且还改不了，因为我不知道是哪位给我备的案），现在要想用启用这个域名，唯一办法就是把blog搬到不需要备案的地方。 所以blog主机从CPH换到了GegeHost。 现在唯一不爽的一点就是某些大学将无法直接访问此blog。 相关文章同...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/memopad">记事本</a> » <a href='http://zhiqiang.org/blog/tag/%e4%b8%bb%e6%9c%ba'>主机</a>  » </p><p>收到Yahoo的来信，yueweitang.org域名将于1个月内过期，只好重新启用域名 zhiqiang.org</p>
<p>之前停用 zhiqiang.org 是因为备案接入商错误（而且还改不了，因为我不知道是哪位给我备的案），现在要想用启用这个域名，唯一办法就是把blog搬到不需要备案的地方。</p>
<p>所以blog主机从CPH换到了<a style="color: #145ca6; cursor: pointer; text-decoration: none; padding: 0px; margin: 0px;" href="http://www.gegehost.com/">GegeHost</a>。</p>
<p>现在唯一不爽的一点就是某些大学将无法直接访问此blog。</p>
<div><h4>相关文章</h4><ul><li><a href="http://zhiqiang.org/blog/it/wordpress-blog-has-different-domains.html">同一WordPress的blog可拥有多个域名</a></li><li><a href="http://zhiqiang.org/blog/scribble/whitelist-era-is-coming.html">昂首跨步走进白名单时代</a></li><li><a href="http://zhiqiang.org/blog/memopad/upgrade-bloghost.html">升级网站空间</a></li><li><a href="http://zhiqiang.org/blog/memopad/blog-host-is-hacked.html">博客主机被黑</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2009. | <a href="http://zhiqiang.org/blog/memopad/use-zhiqiang-org-again.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/memopad/use-zhiqiang-org-again.html#comments">6 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/memopad/use-zhiqiang-org-again.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>同一WordPress的blog可拥有多个域名</title>
		<link>http://zhiqiang.org/blog/it/wordpress-blog-has-different-domains.html</link>
		<comments>http://zhiqiang.org/blog/it/wordpress-blog-has-different-domains.html#comments</comments>
		<pubDate>Tue, 19 Aug 2008 03:14:31 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/posts/wordpress-blog-has-different-domains.html</guid>
		<description><![CDATA[博客 » IT技术 » WordPress » 注：与生成静态化文件的插件冲突。 发个技术贴。相同数据库的blog，但可以用不同域名访问。 效果展示： http://zhiqiang.org/blog/ https://zhiqiang.org/blog/ (https连接需要你接受此域名的"假"证书，实现方法) http://yueweitang.org/ 大家知道WordPress的后台需要填写blog的主页地址，而且它也会尽量避免重复页面，所以多域名也是官方所尽量避免的。但某些时候，多个...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/it">IT技术</a> » <a href='http://zhiqiang.org/blog/tag/wordpress'>WordPress</a>  » </p><p>注：与生成静态化文件的插件冲突。</p>
<p>发个技术贴。相同数据库的blog，但可以用不同域名访问。</p>
<p>效果展示：</p>
<ul>
<li><a href="http://zhiqiang.org/blog/">http://zhiqiang.org/blog/</a>  </li>
<li><a href="https://zhiqiang.org/blog/">https://zhiqiang.org/blog/</a> (https连接需要你接受此域名的"假"证书，实现方法)  </li>
<li><a href="http://yueweitang.org/">http://yueweitang.org/</a></li>
</ul>
<p>大家知道WordPress的后台需要填写blog的主页地址，而且它也会尽量避免重复页面，所以多域名也是官方所尽量避免的。但某些时候，多个域名看起来比较爽，比如域名闲着也是闲着，yueweitang.org是不是好记点？这时候下面的方法就有用了。</p>
<p>原理是WordPress支持宏定义，可以覆盖后台数据库的option选项。与我们相关的两个option选项是 site_url 和 wp_home。要想覆盖数据库里的选项，定义大写的同名的宏即可。</p>
<p>我所用的代码：</p>
<blockquote><pre><span style="color: #0000ff">&lt;?</span>php
if (isset($_SERVER['<span style="color: #8b0000">HTTPS</span>'])):
 define("<span style="color: #8b0000">WP_SITEURL</span>", "<span style="color: #8b0000">https://zhiqiang.org/blog</span>");
 define("<span style="color: #8b0000">WP_HOME</span>", "<span style="color: #8b0000">https://zhiqiang.org/blog</span>");
elseif ($_SERVER['<span style="color: #8b0000">HTTP_HOST</span>']=='<span style="color: #8b0000">yueweitang.org</span>'):
 define("<span style="color: #8b0000">WP_SITEURL</span>", "<span style="color: #8b0000">http://yueweitang.org</span>");
 define("<span style="color: #8b0000">WP_HOME</span>", "<span style="color: #8b0000">http://yueweitang.org</span>");
endif;
<span style="color: #0000ff">?&gt;</span></pre>
</blockquote>
<p>当然第一步工作是把所有域名都指到同一个目录，这个不同服务器方法不一样，就不多说了。</p>
<div><h4>相关文章</h4><ul><li><a href="http://zhiqiang.org/blog/it/my-experiences-and-views-blog.html">我的Blog经历和一些看法</a></li><li><a href="http://zhiqiang.org/blog/memopad/use-zhiqiang-org-again.html">重新启用域名zhiqiang.org</a></li><li><a href="http://zhiqiang.org/blog/scribble/whitelist-era-is-coming.html">昂首跨步走进白名单时代</a></li><li><a href="http://zhiqiang.org/blog/it/blogday-2007.html">BlogDay 2007</a></li><li><a href="http://zhiqiang.org/blog/memopad/blog-is-back-20080915.html">blog回归和杂记20080915</a></li><li><a href="http://zhiqiang.org/blog/memopad/blog-and-microblog.html">微博对博客的冲击</a></li><li><a href="http://zhiqiang.org/blog/memopad/blog-host-is-hacked.html">博客主机被黑</a></li><li><a href="http://zhiqiang.org/blog/it/blog-fast-download-speeds-to-be-faster-and-the-speed-of-blog.html">blog下载速度多快才算快和blog速度优化</a></li><li><a href="http://zhiqiang.org/blog/it/wordpress-21-solution-can-not-remove-the-article-upgrade-to-213.html">WordPress 2.1无法删除文章解决方法 &amp; 升级到2.1.3</a></li><li><a href="http://zhiqiang.org/blog/science/computer-science/move-blogbus-data-to-wordpress.html">BlogBus搬家文件转WordPress导入文件</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2008. | <a href="http://zhiqiang.org/blog/it/wordpress-blog-has-different-domains.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/it/wordpress-blog-has-different-domains.html#comments">11 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/it/wordpress-blog-has-different-domains.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

