<?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>Ladysign Dev Blog &#187; rewritecond</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/rewritecond/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 12 Dec 2011 16:58:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create subdomain in .htaccess file</title>
		<link>http://www.ladysign-apps.com/blog/code/browsers/create-subdomain-in-htaccess-file/</link>
		<comments>http://www.ladysign-apps.com/blog/code/browsers/create-subdomain-in-htaccess-file/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 19:13:46 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[generators]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[rewritecond]]></category>
		<category><![CDATA[rewriteegine]]></category>
		<category><![CDATA[subdomain]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=855</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars<br />
Let&#8217;s say you have a website with a forum. For example:<br />
<strong>http://www.mydomain.com/forum/?option=com_kunena&#038;Itemi[......]</strong></p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/browsers/create-subdomain-in-htaccess-file/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars<br />
Let&#8217;s say you have a website with a forum. For example:<br />
<strong>http://www.mydomain.com/forum/?option=com_kunena&#038;Itemid=0</strong><br />
you want to bind it to the following subdomain:<br />
<strong>http://forum.mydomain.com</strong></p>
<p>Then this is your .htaccess file content. (Do not forget the [R=301,L] or it won&#8217;t work)</p>
<pre class="brush: jscript; title: ;">RewriteEngine On
# first make sure my www is not touched
RewriteCond %{HTTP_HOST} !^www.mydomain.com
# the subdomain you want to create
RewriteCond %{HTTP_HOST} ^forum.mydomain.com
# the place to redirect to
RewriteRule (.*) http://www.mydomain.com/forum/?option=com_kunena&amp;Itemid=0 [R=301,L]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/browsers/create-subdomain-in-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

