<?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; htaccess</title>
	<atom:link href="http://laoyue.chez.com/index.php/archives/tag/htaccess/feed" rel="self" type="application/rss+xml" />
	<link>http://laoyue.chez.com</link>
	<description>旺旺旺~~~</description>
	<lastBuildDate>Mon, 20 Apr 2026 05:52:09 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>通过设置[.htaccess]实现URL完美转向!</title>
		<link>http://laoyue.chez.com/index.php/archives/858</link>
		<comments>http://laoyue.chez.com/index.php/archives/858#comments</comments>
		<pubDate>Sun, 22 Feb 2009 05:35:01 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://saoker.net/?p=858</guid>
		<description><![CDATA[方法有两种! 1,如果拥有CP权限的话!可以使用CP里面的目录转向来实现!!但是,这个方式的实现方式归根结底还是通过可视化的.htaccess编辑来做到的! 2,直接编辑.htaccess来实现! 编辑.htaccess,写入: RewriteEngine ON RewriteCond %{HTTP_HOST} ^saoker.org$ [OR] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*)$ http://www.saoker.net/ [R=301,L] 注释:其中,saoker.org是访问地址,saoker.net是转向以后的地址!! 实现原理: 用户访问网站—读取目录下.htaccess文件—判断用户请求地址—使用正则来替换请求地址—替换成功—转向设定地址—OVER!]]></description>
				<content:encoded><![CDATA[<p>方法有两种!<br />
1,如果拥有CP权限的话!可以使用CP里面的目录转向来实现!!但是,这个方式的实现方式归根结底还是通过可视化的.htaccess编辑来做到的!<br />
2,直接编辑.htaccess来实现!<br />
编辑.htaccess,写入:</p>
<p>RewriteEngine ON<br />
RewriteCond %{HTTP_HOST} ^saoker.org$ [OR]<br />
RewriteCond %{REQUEST_URI} ^/$<br />
RewriteRule ^(.*)$ <a href="http://www.saoker.net/">http://www.saoker.net/</a> [R=301,L]</p>
<p>注释:其中,saoker.org是访问地址,saoker.net是转向以后的地址!!</p>
<p>实现原理:<br />
用户访问网站—读取目录下.htaccess文件—判断用户请求地址—使用正则来替换请求地址—替换成功—转向设定地址—OVER!</p>
]]></content:encoded>
			<wfw:commentRss>http://laoyue.chez.com/index.php/archives/858/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
