<?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>Dominic.Xu&#039;s 博客 &#187; tag插件</title>
	<atom:link href="http://xuplus.com/article/tag/tag%e6%8f%92%e4%bb%b6/feed" rel="self" type="application/rss+xml" />
	<link>http://xuplus.com</link>
	<description>Web 2.0 生活</description>
	<lastBuildDate>Wed, 24 Aug 2011 05:26:12 +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>WordPress Tag插件(UltimateTagWarrior) 不能使用中文tag的解决办法</title>
		<link>http://xuplus.com/article/2007/04/a16.html</link>
		<comments>http://xuplus.com/article/2007/04/a16.html#comments</comments>
		<pubDate>Wed, 18 Apr 2007 09:07:39 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Web应用]]></category>
		<category><![CDATA[404错误]]></category>
		<category><![CDATA[tag插件]]></category>
		<category><![CDATA[UltimateTagWarrior]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=16</guid>
		<description><![CDATA[今天加入了UltimateTagWarrior模组加入Tag，但是只要Tag是中文的，启用rewrite之后，均不能正常显示，全部报404错误。经过长时间的跟踪终于发现问题了。以下以http://xuplus.com/tag/合肥 为例。 wp-includes下classes.php文件61行附近              $req_uri = str_replace($pathinfo, ”, $req_uri); 这行代码主要作用是将$reg_uri赋值/tag，但运行时 pathinfo为 合肥 req_url为/tag/%E5%90%88%E8%82%A5，这样并不能完成替换操作给$reg_uri赋值/tag。替换成              $req_uri = urldecode(str_replace(urlencode($pathinfo), ”, str_replace(&#8216;/&#8217;,'%2F&#8217;,$req_uri)));              //Modified By XuYong 修正url中有中文字符的问题$pathinfo被urldecode了,导致不能正常工作的问题 即可正常访问。 标签： 404错误, tag插件, UltimateTagWarrior, Wordpress, 中文]]></description>
			<content:encoded><![CDATA[<p><font size="3">今天加入了UltimateTagWarrior模组加入Tag，但是只要Tag是中文的，启用rewrite之后，均不能正常显示，全部报404错误。经过长时间的跟踪终于发现问题了。以下以<font color="#808080">http://xuplus.com/tag/合肥</font> 为例。</font></p>
<p><font size="3"><font style="background-color: #99ccff">wp-includes</font>下<font style="background-color: #99ccff">classes.php</font>文件61行附近<br />
             <span class="Code"><font size="3">$</font><font size="3">req_uri = str_replace($pathinfo, ”, $req_uri);</font></span></font><span class="Code"><br />
</span>这行代码主要作用是将$reg_uri赋值/tag，但运行时 pathinfo为 合肥 req_url为/tag/%E5%90%88%E8%82%A5，这样并不能完成替换操作给$reg_uri赋值/tag。替换成<br />
             <span class="Code">$req_uri = urldecode(str_replace(urlencode($pathinfo), ”, str_replace(&#8216;/&#8217;,'%2F&#8217;,$req_uri)));<br />
</span>             //Modified By XuYong 修正url中有中文字符的问题$pathinfo被urldecode了,导致不能正常工作的问题</p>
<p>即可正常访问。</p>

	标签： <a href="http://xuplus.com/article/tag/404%e9%94%99%e8%af%af" title="404错误" rel="tag">404错误</a>, <a href="http://xuplus.com/article/tag/tag%e6%8f%92%e4%bb%b6" title="tag插件" rel="tag">tag插件</a>, <a href="http://xuplus.com/article/tag/ultimatetagwarrior" title="UltimateTagWarrior" rel="tag">UltimateTagWarrior</a>, <a href="http://xuplus.com/article/tag/wordpress" title="Wordpress" rel="tag">Wordpress</a>, <a href="http://xuplus.com/article/tag/%e4%b8%ad%e6%96%87" title="中文" rel="tag">中文</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/04/a16.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

