<?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; rewrite</title>
	<atom:link href="http://www.lifangjin.com/archives/tag/rewrite/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lifangjin.com</link>
	<description>李方进的个人BLOG</description>
	<lastBuildDate>Sun, 05 Feb 2012 15:36:06 +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>在dreamhost实现discuz的伪静态化</title>
		<link>http://www.lifangjin.com/archives/378</link>
		<comments>http://www.lifangjin.com/archives/378#comments</comments>
		<pubDate>Tue, 07 Aug 2007 04:43:13 +0000</pubDate>
		<dc:creator>李 方进</dc:creator>
				<category><![CDATA[开发编程]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.lifangjin.com/?p=378</guid>
		<description><![CDATA[Options +FollowSymLinks # 将 RewriteEngine 模式打开 RewriteEngine On # 修改以下语句中的 /discuz 为你的论坛目录地址，如果程序放在根目录中，请将 /discuz 修改为 / RewriteBase / # Rewrite 系统规则请勿修改 RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1 RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&#38;page=$2 RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&#38;extra=page\%3D$3&#38;page=$2 RewriteRule ^profile-(username&#124;uid)-(.+)\.html$ viewpro.php?$1=$2 RewriteRule ^space-(username&#124;uid)-(.+)\.html$ space.php?$1=$2 RewriteRule ^tag-(.+)\.html$ tag.php?name=$1 由于windows下不支持.htaccess文件，因此将上面的代码保存为一个文本文件，将这个文本文件传到DH的空间后改名为.htaccess，然后在后台管理中的“基本设置-搜索引擎优化”中选择“URL 静态化”的相应的值，即可实现在dreamhost空间中的discuz的伪静态化。 伪静态化后的样例可访问：http://www.c3h3studio.com/ (增加了tag.php对应的rewrite规则 2007-8-23)]]></description>
			<content:encoded><![CDATA[<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"></li></ol></div>
<p><ifmodule></ifmodule><br />
Options +FollowSymLinks<br />
# 将 RewriteEngine 模式打开<br />
RewriteEngine On<br />
# 修改以下语句中的 /<a href="http://www.lifangjin.com/archives/tag/discuz" class="st_tag internal_tag" rel="tag" title="Posts tagged with discuz">discuz</a> 为你的论坛目录地址，如果程序放在根目录中，请将 /<a href="http://www.lifangjin.com/archives/tag/discuz" class="st_tag internal_tag" rel="tag" title="Posts tagged with discuz">discuz</a> 修改为 /<br />
RewriteBase /</p>
<p># <a href="http://www.lifangjin.com/archives/tag/rewrite" class="st_tag internal_tag" rel="tag" title="Posts tagged with rewrite">Rewrite</a> 系统规则请勿修改<br />
RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1<br />
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&amp;page=$2<br />
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&amp;extra=page\%3D$3&amp;page=$2<br />
RewriteRule ^profile-(username|uid)-(.+)\.html$ viewpro.php?$1=$2<br />
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2<br />
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1<br />
由于windows下不支持.htaccess文件，因此将上面的代码保存为一个文本文件，将这个文本文件传到DH的空间后改名为.htaccess，然后在后台管理中的“基本设置-搜索引擎优化”中选择“URL 静态化”的相应的值，即可实现在dreamhost空间中的discuz的伪静态化。<br />
伪静态化后的样例可访问：<a target="_blank" href="http://www.c3h3studio.com/">http://www.c3h3studio.com/</a></p>
<p>(增加了tag.php对应的rewrite规则 2007-8-23)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lifangjin.com/archives/378/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

