﻿<?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>Vi`blog · 唯音 &#187; wordpress</title>
	<atom:link href="http://www.viyin.net/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.viyin.net</link>
	<description>岂能尽如人意，但求无愧于心</description>
	<lastBuildDate>Mon, 14 Nov 2011 15:43:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>wordpress 伪静态 windows主机下</title>
		<link>http://www.viyin.net/2009/10/wordpress-windows-rewrite.html</link>
		<comments>http://www.viyin.net/2009/10/wordpress-windows-rewrite.html#comments</comments>
		<pubDate>Sun, 11 Oct 2009 04:22:35 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=475</guid>
		<description><![CDATA[win主机对wordpress伪静态支持不太好，网上找了一些，有说用404实现，有说改写httpd.ini.但都有一个问题.就是对文章提交评论的时候,会出现404无法找到.. 今天找了一个.可以解决评论出现404页面的问题.其他的暂未发现. 发出来分享下. 效果可以看 http://www.lilijun.cn [ISAPI_Rewrite] # Defend your computer from some worm attacks #RewriteRule .*(?:global.asa&#124;default\.ida&#124;root\.exe&#124;\.\.).* . [F,I,O] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 #Protect httpd.ini and httpd.parse.errors files # from accessing through HTTP # # 形式：年/月/日/Postname/ # # 自定义链接 /%year%/%monthnum%/%day%/%postname%/ RewriteRule /tag/(.*) /index\.php\?tag=$1 RewriteRule /(about_me&#124;blog_log&#124;contact&#124;download&#124;about-copyright&#124;links&#124;favor&#124;archives&#124;tags&#124;sitemap&#124;link&#124;message)/ /index\.php\?pagename=$1 RewriteRule /category/(.*)/(feed&#124;rdf&#124;rss&#124;rss2&#124;atom)/?$ /wp-feed\.php\?category_name=$1&#38;feed=$2 RewriteRule /category/?(.*)/ [...]]]></description>
			<content:encoded><![CDATA[<p>win主机对wordpress伪静态支持不太好，网上找了一些，有说用404实现，有说改写httpd.ini.但都有一个问题.就是对文章提交评论的时候,会出现404无法找到..</p>
<p>今天找了一个.可以解决评论出现404页面的问题.其他的暂未发现.</p>
<p>发出来分享下. 效果可以看 http://<a href="http://www.lilijun.cn">www.lilijun.cn</a><br />
[ISAPI_<a href="http://www.viyin.net/tag/rewrite" class="st_tag internal_tag" rel="tag" title="标签 rewrite 下的日志">Rewrite</a>]<br />
# Defend your computer from some worm attacks</p>
<p><span id="more-475"></span><br />
#RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]<br />
# 3600 = 1 hour<br />
CacheClockRate 3600<br />
RepeatLimit 32<br />
#Protect httpd.ini and httpd.parse.errors files<br />
# from accessing through HTTP<br />
# # 形式：年/月/日/Postname/<br />
# # 自定义链接 /%year%/%monthnum%/%day%/%postname%/</p>
<p>RewriteRule /tag/(.*) /index\.php\?tag=$1<br />
RewriteRule /(about_me|blog_log|contact|download|about-copyright|links|favor|archives|tags|sitemap|link|message)/ /index\.php\?pagename=$1<br />
RewriteRule /category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&amp;feed=$2<br />
RewriteRule /category/?(.*)/ /index\.php\?category_name=$1<br />
RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&amp;feed=$2<br />
RewriteRule /author/?(.*) /index\.php\?author_name=$1<br />
RewriteRule /feed/?$ /index.php\?feed=rss2<br />
RewriteRule /comments/feed/?$ /index.php\?feed=comments-rss2<br />
RewriteRule /page/(.*)/ /index\.php\?paged=$1<br />
RewriteRule /([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index\.php\?year=$1&amp;monthnum=$2&amp;day=$3&amp;name=$4&amp;page=$5<br />
RewriteRule /([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&amp;monthnum=$2&amp;day=$3&amp;page=$4<br />
RewriteRule /([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&amp;monthnum=$2&amp;page=$3<br />
RewriteRule /([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index\.php\?year=$1&amp;monthnum=$2&amp;day=$3&amp;name=$4&amp;feed=$5<br />
RewriteRule /([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /wp-trackback\.php\?year=$1&amp;monthnum=$2&amp;day=$3&amp;name=$4&amp;tb=1</p>
<p>RewriteRule /software-files/(.*) /software-files/$1 [L]<br />
RewriteRule /images/(.*) /images/$1 [L]<br />
RewriteRule /sitemap.xml /sitemap.xml [L]<br />
RewriteRule /favicon.ico /favicon.ico [L]<br />
# For file-based <a href="http://www.viyin.net/tag/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">wordpress</a> content (i.e. theme), admin, etc.<br />
RewriteRule /wp-(.*) /wp-$1 [L]<br />
# For normal wordpress content, via index.php<br />
RewriteRule ^/$ /index.php [L]<br />
RewriteRule /(.*) /index.php/$1 [L]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2009/10/wordpress-windows-rewrite.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在wordpress的导航条添加链接</title>
		<link>http://www.viyin.net/2009/08/wordpress-link.html</link>
		<comments>http://www.viyin.net/2009/08/wordpress-link.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 09:58:26 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[导航]]></category>
		<category><![CDATA[链接]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=442</guid>
		<description><![CDATA[wordpress默认的在导航上增加项目的方法只有添加页面，但是不能实现跳转。所以需要修改模板来实现跳转。 在header.php中找到相关的地方,比如: &#60;li&#62;HOME&#60;/li&#62; &#60;li&#62;GET PAGE&#60;/li&#62; &#60;li&#62;你想要加的链接!&#60;/li&#62;]]></description>
			<content:encoded><![CDATA[<p style="text-indent: 2em;">wordpress默认的在导航上增加项目的方法只有添加页面，但是不能实现跳转。所以需要修改模板来实现跳转。</p>
<p style="text-indent: 2em;">在header.php中找到相关的地方,比如:<br />
<code><span style="font-family: Lucida Sans Unicode;">&lt;li&gt;HOME&lt;/li&gt;<br />
&lt;li&gt;GET PAGE&lt;/li&gt;<br />
&lt;li&gt;你想要加的链接!&lt;/li&gt;</span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2009/08/wordpress-link.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress在nginx下rewrite静态化规则</title>
		<link>http://www.viyin.net/2009/08/wordpress-nginx-rewrite.html</link>
		<comments>http://www.viyin.net/2009/08/wordpress-nginx-rewrite.html#comments</comments>
		<pubDate>Sun, 23 Aug 2009 02:59:58 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√web]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[√nginx]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=423</guid>
		<description><![CDATA[在nginx不能像apache加入.htaccess实现静态化。 apache下 # BEGIN WordPress &#60;IfModule mod_rewrite.c&#62; RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] &#60;/IfModule&#62; # END WordPress nginx在vhost配置中加入 location / { &#160;&#160; &#160; &#160; &#160;index index.html index.php; &#160;&#160; &#160; &#160; &#160;if (-f $request_filename/index.html){ &#160;&#160; &#160; &#160; &#160; &#160; &#160;rewrite (.*) $1/index.html break; &#160;&#160; &#160; &#160; &#160;} &#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>在nginx不能像apache加入.htaccess实现静态化。<br />
apache下</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"># BEGIN WordPress</li>
<li>&lt;IfModule mod_rewrite.c&gt;</li>
<li>RewriteEngine On</li>
<li>RewriteBase /</li>
<li>RewriteCond %{REQUEST_FILENAME} !-f</li>
<li>RewriteCond %{REQUEST_FILENAME} !-d</li>
<li>RewriteRule . /index.php [L]</li>
<li>&lt;/IfModule&gt;</li>
<li># END WordPress</li></ol></div>
<p>nginx在vhost配置中加入</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">location / {</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;index index.html index.php;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename/index.html){</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1/index.html break;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename/index.php){</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1/index.php;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (!-f $request_filename){</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) /index.php;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</li>
<li>&nbsp;&nbsp; &nbsp;}</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2009/08/wordpress-nginx-rewrite.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

