<?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>刻录者™ &#124; Burning的大杂烩 &#187; Godaddy 静态 wordpress</title>
	<atom:link href="http://burning.im/html/tag/godaddy-%e9%9d%99%e6%80%81-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://burning.im</link>
	<description>Burning  living  Enjoying  life &#124; 记录生活 享受生命</description>
	<lastBuildDate>Sun, 01 Aug 2010 04:06:02 +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>主机搬到了Godaddy 及生成静态页面</title>
		<link>http://burning.im/html/2097.html</link>
		<comments>http://burning.im/html/2097.html#comments</comments>
		<pubDate>Sat, 01 Aug 2009 01:04:37 +0000</pubDate>
		<dc:creator>burning</dc:creator>
				<category><![CDATA[随笔随记]]></category>
		<category><![CDATA[Godaddy  静态 wordpress]]></category>

		<guid isPermaLink="false">http://www.burninger.com/html/2097.html</guid>
		<description><![CDATA[主机搬到了Godaddy，Linux主机，设置了为静态，然后用cos-html-cache生成静态页面！ cos-html-cache使用方法： **** 概述**** cos-html-cache 将会大大地提高你wordpress的运行效率和载入速度。该插件会在页面第一次载入的时候产生和url对应的真正的html文件作为缓存，后面的运行将会直接载入该html从而大大的提高了页面的效率。当页面内容发生变化时将会自动更新对应的页面，更新缓存的触发事件有：修改文章、删除文章、评论成功提交，同时这些事件也将会更新与之相邻的文章。 cos-html-cache2.0和之前的版本相比大大的提高了速度，改进了缓存的机制，使之更加科学 **** 安装**** 1. 首先，永久连接不能使用默认格式； 2. 修改你的永久链接格式，保证你的url路径看起来像真正的HTML文件的路径(废话一句：这个是需要url rewrite支持的)，中文推荐采用 /html/y%year%/%post_id%.html如果你和我一样不怕麻烦愿意为每篇文章写一个英语的post slug，建议采用这样的格式：/html/y%year%/%post_id%_%postname%.html,最好不要直接用year和 month，因为这个会和存档出现冲突； 3. 放置html文件的文件夹属性请设置成 0777（linux特有设置）； 4. 下载插件，解压缩，你将会看到一个文件夹cos-html-cache，请确认文件夹里面没有二级目录，然后将其放置到插件目录下，插件目录通常是 `wp-content/plugins/`； 5. 在网站根目录下创建一个文件名为&#8221;index.bak&#8221;，设置属性为0666(好多朋友反映无法生成首页，请注意这里)； 6. 在后台对应的插件管理页激活该插件； 7. 请确保你WP的gzip压缩未打开（今后的版本如果没有此选项，忽略之） ,如图: 8. 安装完成； **** godaddy主机注意**** godaddy主机的$_SERVER变量有些古怪，所以cos-html-cache可能会将目录搞错，现在判断html的目录方式在其他主机没有问题，而当前就目录的判断方式就是为了防止二级目录出错而设计的，因此不打算专门为godaddy做修改，因此这里特此给出godaddy的解决方案： 修改方法是：修改cos-html-cache.php文件 将$path = $_SERVER['DOCUMENT_ROOT'].&#8221;/&#8221;;替换为$path = ABSPATH ; 如果目录依然错乱，继续修改 $path = ABSPATH.&#8221;/youblogdir&#8221;,直到正常为止。 上面是针对goaddy，cos-html-cache的一个解决方案。 某个页面被浏览或者评论，就会自动生成静态页面 搞定！ 即日起更换域名为burning.im，订阅地址更换为：feed.burning.im。 burning for 刻录者™ &#124; Burning的大杂烩, [...]]]></description>
			<content:encoded><![CDATA[<p>主机搬到了Godaddy，Linux主机，设置了为静态，然后用cos-html-cache生成静态页面！</p>
<p>cos-html-cache使用方法：</p>
<p>**** 概述****</p>
<p>cos-html-cache 将会大大地提高你wordpress的运行效率和载入速度。该插件会在页面第一次载入的时候产生和url对应的真正的html文件作为缓存，后面的运行将会直接载入该html从而大大的提高了页面的效率。当页面内容发生变化时将会自动更新对应的页面，更新缓存的触发事件有：修改文章、删除文章、评论成功提交，同时这些事件也将会更新与之相邻的文章。 <br/>cos-html-cache2.0和之前的版本相比大大的提高了速度，改进了缓存的机制，使之更加科学</p>
<p><br/>**** 安装****</p>
<p>1. 首先，永久连接不能使用默认格式； <br/>2. 修改你的永久链接格式，保证你的url路径看起来像真正的HTML文件的路径(废话一句：这个是需要url rewrite支持的)，中文推荐采用 /html/y%year%/%post_id%.html如果你和我一样不怕麻烦愿意为每篇文章写一个英语的post slug，建议采用这样的格式：/html/y%year%/%post_id%_%postname%.html,最好不要直接用year和 month，因为这个会和存档出现冲突； <br/>3. 放置html文件的文件夹属性请设置成 0777（linux特有设置）； <br/>4. 下载插件，解压缩，你将会看到一个文件夹cos-html-cache，请确认文件夹里面没有二级目录，然后将其放置到插件目录下，插件目录通常是 `wp-content/plugins/`； <br/>5. 在网站根目录下创建一个文件名为&#8221;index.bak&#8221;，设置属性为0666(好多朋友反映无法生成首页，请注意这里)； <br/>6. 在后台对应的插件管理页激活该插件； <br/>7. 请确保你WP的gzip压缩未打开（今后的版本如果没有此选项，忽略之） ,如图: <br/>8. 安装完成；</p>
<p>**** godaddy主机注意**** <br/>godaddy主机的$_SERVER变量有些古怪，所以cos-html-cache可能会将目录搞错，现在判断html的目录方式在其他主机没有问题，而当前就目录的判断方式就是为了防止二级目录出错而设计的，因此不打算专门为godaddy做修改，因此这里特此给出godaddy的解决方案：</p>
<p>修改方法是：修改cos-html-cache.php文件 将$path = $_SERVER['DOCUMENT_ROOT'].&#8221;/&#8221;;替换为$path = ABSPATH ;</p>
<p>如果目录依然错乱，继续修改 $path = ABSPATH.&#8221;/youblogdir&#8221;,直到正常为止。</p>
<p>上面是针对goaddy，cos-html-cache的一个解决方案。</p>
<p>某个页面被浏览或者评论，就会自动生成静态页面 <br/>搞定！</p><table cellpadding=0 cellspacing=0><tr><td><script type="text/javascript"><!--
google_ad_client = "pub-2529782223420671";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al";
//2007-06-03: burninger.com, http://4549566.blogspot.com/, mmsight.com
google_ad_channel = "5029192609+3031820394+9519575881";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td></tr></table> <hr />
即日起更换域名为burning.im，订阅地址更换为：feed.burning.im。
<p><small> burning for <a href="http://burning.im">刻录者™ | Burning的大杂烩</a>, 2009. |
<a href="http://burning.im/html/2097.html">Permalink</a> |
<a href="http://burning.im/html/2097.html#comments">One comment</a> |
<br>©本作品根据<a href=”http://creativecommons.org/licenses/by-nc-nd/3.0/” target=”_blank”>知识共享署名-非商业性使用</a>进行授权，转载务必注明出自博客刻录者 | Burning的大杂烩 :http://burning.im/html/2097.html。
<br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://burning.im/html/2097.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
