<?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>DiaHosting官方博客 &#187; discuz</title>
	<atom:link href="http://blog.diahosting.com/tag/discuz/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.diahosting.com</link>
	<description></description>
	<lastBuildDate>Sun, 14 Mar 2010 09:39:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>lighttpd环境下添加rewrite(伪静态)规则</title>
		<link>http://blog.diahosting.com/kloxo/lighttpd-rewrite-wordpress-discuz/</link>
		<comments>http://blog.diahosting.com/kloxo/lighttpd-rewrite-wordpress-discuz/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 01:30:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Kloxo教程]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[rewrite规则]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[伪静态规则]]></category>

		<guid isPermaLink="false">http://blog.diavps.cn/?p=44</guid>
		<description><![CDATA[我们的系统默认已经开启了伪静态功能，但是需要自行添加所用程序的伪静态规则。
位置如下图所示。

 
WordPress lighttpd的rewrite(伪静态)规则如下

url.rewrite = (
"^/(wp-.+).*/?" =&#62; "$0",
"^/(sitemap.xml)" =&#62; "$0",
"^/(xmlrpc.php)" =&#62; "$0",
"^/(.+)/?$" =&#62; "/index.php/$1"
)

Discuz lighttpd的rewrite(伪静态)规则如下

url.rewrite-once = (
"^/archiver/((fid&#124;tid)-[\w\-]+\.html)$" =&#62; "archiver/index.php?$1",
"^/forum-([0-9]+)-([0-9]+)\.html$" =&#62; "forumdisplay.php?fid=$1&#38;page=$2",
"^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" =&#62; "viewthread.php?tid=$1&#38;extra=page=$3&#38;page=$2",
"^/space-(username&#124;uid)-(.+)\.html$" =&#62; "space.php?$1=$2",
"^/tag-(.+)\.html$" =&#62; "tag.php?name=$1"
)

]]></description>
			<content:encoded><![CDATA[<p>我们的系统默认已经开启了伪<span onclick="tagshow(event)">静态</span>功能，但是需要自行添加所用程序的伪静态规则。<br />
位置如下图所示。</p>
<p><a rel="lightbox" href="http://blog.diahosting.com/wp-content/uploads/2009/08/0906192314ddc8b35a0ed0ad94.jpg"><img class="alignnone size-medium wp-image-45" title="0906192314ddc8b35a0ed0ad94" src="http://blog.diahosting.com/wp-content/uploads/2009/08/0906192314ddc8b35a0ed0ad94-300x232.jpg" alt="lighttpd rewrite规则" width="300" height="232" /></a></p>
<p> </p>
<p>WordPress lighttpd的rewrite(伪静态)规则如下<br />
<code><br />
url.rewrite = (<br />
"^/(wp-.+).*/?" =&gt; "$0",<br />
"^/(sitemap.xml)" =&gt; "$0",<br />
"^/(xmlrpc.php)" =&gt; "$0",<br />
"^/(.+)/?$" =&gt; "/index.php/$1"<br />
)<br />
</code><br />
Discuz lighttpd的rewrite(伪静态)规则如下</p>
<p><code><br />
url.rewrite-once = (<br />
"^/archiver/((fid|tid)-[\w\-]+\.html)$" =&gt; "archiver/index.php?$1",<br />
"^/forum-([0-9]+)-([0-9]+)\.html$" =&gt; "forumdisplay.php?fid=$1&amp;page=$2",<br />
"^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" =&gt; "viewthread.php?tid=$1&amp;extra=page=$3&amp;page=$2",<br />
"^/space-(username|uid)-(.+)\.html$" =&gt; "space.php?$1=$2",<br />
"^/tag-(.+)\.html$" =&gt; "tag.php?name=$1"<br />
)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.diahosting.com/kloxo/lighttpd-rewrite-wordpress-discuz/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

