<?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>CNXCT小组的博客 &#187; url rewrite</title>
	<atom:link href="http://www.cnxct.com/tag/url-rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cnxct.com</link>
	<description>技术这个东西如同一个圆 ,刚开始的时候我们就如同站在圆心,一旦投入学习下去 ,圆就慢慢变大 ,圆的边缘以外也就会越来越大,接触的多了 知道的多了, 就会发现自己真的很无知!</description>
	<lastBuildDate>Tue, 31 Jan 2012 07:56:30 +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>URL REwrite fox xoops</title>
		<link>http://www.cnxct.com/url-rewrite-fox-xoops/</link>
		<comments>http://www.cnxct.com/url-rewrite-fox-xoops/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 08:24:28 +0000</pubDate>
		<dc:creator>CFC4N</dc:creator>
				<category><![CDATA[所谓技术]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[url rewrite]]></category>
		<category><![CDATA[xoops]]></category>

		<guid isPermaLink="false">http://www.cnxct.com/?p=304</guid>
		<description><![CDATA[只写了news,tag,newbb,profile,extgallery这几个模块!
需要apache 的 Rewrite module 的支持!

1,将.htaccess,rewrite_url.php 两个文件复制到xoops主目录下.
2,如果你的xoops不是您网站的根目录,请按照一下操作,否则,请跳过此条,直接进行第3条!
    如果您的网站类似这个url http://www.xxx.com/xoops 的话,请打开.htaccess ,找到
    #RewriteBase ,去掉前面的# ,后面加上 /xoops, 使之成为RewriteBase /xoops  ,保存
3,打开mainfile.php,找到 
    define("XOOPS_CHECK_PATH", 0);
    在其下面添加  include "rewrite_url.php";
4,清除缓存,刷新即可!]]></description>
			<content:encoded><![CDATA[<p>只写了news,tag,newbb,profile,extgallery这几个模块!<br />
需要apache 的 Rewrite module 的支持!</p>
<p>1,将.htaccess,rewrite_url.php 两个文件复制到xoops主目录下.<br />
2,如果你的xoops不是您网站的根目录,请按照一下操作,否则,请跳过此条,直接进行第3条!<br />
    如果您的网站类似这个url http://www.xxx.com/xoops 的话,请打开.htaccess ,找到<br />
    #RewriteBase ,去掉前面的# ,后面加上 /xoops, 使之成为RewriteBase /xoops  ,保存<br />
3,打开mainfile.php,找到<br />
    define(“XOOPS_CHECK_PATH”, 0);<br />
    在其下面添加  include “rewrite_url.php”;<br />
4,清除缓存,刷新即可!</p>
<p>附帖子地址:http://xoops.org.cn/modules/newbb/viewtopic.php?topic_id=20353</p>
<p>.htaccess</p>
<pre class="brush: plain; title: ; notranslate">
RewriteEngine On

#如果你的xoops不是在网站根目录,请填写目录名,比如:
#http://xx.com/xoops ,那么请将#RewriteBase前的#去掉,并且,改为 RewriteBase /xoops ,如果是根目录,请保持不变

#RewriteBase 

#RewriteCond %{REQUEST_FILENAME}   !-f

#all
RewriteRule ^(profile|pm|news|gamaps|extgallery|contact)/index.html$ modules/$1/index.php

#profile
RewriteRule ^profile/([a-zA-Z_-]+).html$ modules/profile/$1.php
RewriteRule ^profile/userinfo.php.*$ modules/profile/userinfo.php$1
RewriteRule ^profile/([0-9]+).html$ modules/profile/userinfo.php?uid=$1
RewriteRule ^profile/edit-([0-9]+).html$ modules/profile/edituser.php?uid=$1

# newbb
RewriteRule ^newbb/forum-(d+).html$ modules/newbb/viewforum.php?forum=$1
RewriteRule ^newbb/rss-(d+).html$ modules/newbb/rss.php?f=$1
RewriteRule ^newbb/thread-(d+)-(d+).html$ modules/newbb/viewtopic.php?topic_id=$1&amp;forum=$2
RewriteRule ^newbb/thread-(d+)-(d+)-(w*)-(ASC|DESC)-(next|prev).html$ modules/newbb/viewtopic.php?viewmode=$3&amp;order=$4&amp;topic_id=$1&amp;forum=$2&amp;move=$5
RewriteRule ^newbb/index-(d+).html$ modules/newbb/index.php?cat=$1
RewriteRule ^newbb/(w+).php.*$ modules/newbb/$1.php$2

#news
RewriteRule ^news/(d+).html$ modules/news/article.php?storyid=$1
RewriteRule ^news/index-(d+).html$ modules/news/index.php?storytopic=$1
RewriteRule ^news/index-(d+)-(d+).html$ modules/news/index.php?storytopic=$1&amp;start=$2
RewriteRule ^news/ratenews-(d+).html$ modules/news/ratenews.php?storyid=$1
RewriteRule ^news/comment-(w*)-(d+)-(d+).html$ modules/news/comment_new.php?com_itemid=$2&amp;com_order=$3&amp;com_mode=$1

#extgallery
RewriteRule ^extgallery/index-(d+).html$ modules/extgallery/public_album.php?id=$1
RewriteRule ^extgallery/index-(d+)-(d+).html$ modules/extgallery/public_album.php?id=$1&amp;start=$2
RewriteRule ^extgallery/photo-(d+).html(#?[a-zA-Z0-9]*)$ modules/extgallery/public_photo.php?photoId=$1$2
RewriteRule ^extgallery/userphoto-(d+).html(#?[a-zA-Z0-9]*)$ modules/extgallery/public_userphoto.php?photoId=$1$2
RewriteRule ^extgallery/rate-(d+)-(d+).html$ modules/extgallery/public_rating.php?id=$1&amp;rate=$2
RewriteRule ^extgallery/useralbum-(d+).html$ modules/extgallery/public_useralbum.php?id=$1
RewriteRule ^extgallery/download-(d+).html$ modules/extgallery/public_download.php?id=$1
RewriteRule ^extgallery/sendecard-(d+).html$ modules/extgallery/public_sendecard.php?id=$1
</pre>
<p>rewrite_url.php</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// $Id: rewrite_url.php,v 1.0 2009-3-16 cfc4n $
// &lt;http://www.xoops.org.cn&gt;
//
if (!defined(&quot;XOOPS_ROOT_PATH&quot;) || !defined(&quot;XOOPS_URL&quot;) ) {
    exit();
}
######################################
#正则表达式里好多代码都被高亮插件执行了,大家还是下载附件吧#
######################################
</pre>
<p><a href='http://www.cnxct.com/wp-content/uploads/2009/03/xoops-rewrite-url.rar'>附件:xoops-rewrite-url</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cnxct.com/url-rewrite-fox-xoops/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

