<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Creating Wildcard Subdomains + Controller/Dispatcher</title>
	<atom:link href="http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/feed/" rel="self" type="application/rss+xml" />
	<link>http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/</link>
	<description>webdev.design.life</description>
	<pubDate>Fri, 12 Mar 2010 01:54:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nl2QL</title>
		<link>http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/comment-page-1/#comment-37</link>
		<dc:creator>Nl2QL</dc:creator>
		<pubDate>Fri, 19 May 2006 18:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/#comment-37</guid>
		<description>Hello,

I'm using your rule but it doesn't go to directory ( name of subdomain ), how can i make this?? I need to load directory by subdomain name...

RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{HTTP_HOST} !^www\.example\.com?$
RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com?$
RewriteRule ^$ /$1 [L]

is last line correct, or what i need to use?? Thank you..</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m using your rule but it doesn&#8217;t go to directory ( name of subdomain ), how can i make this?? I need to load directory by subdomain name&#8230;</p>
<p>RewriteEngine On<br />
RewriteRule ^\.htaccess$ - [F]<br />
RewriteCond %{HTTP_HOST} !^www\.example\.com?$<br />
RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com?$<br />
RewriteRule ^$ /$1 [L]</p>
<p>is last line correct, or what i need to use?? Thank you..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justRafi</title>
		<link>http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/comment-page-1/#comment-34</link>
		<dc:creator>justRafi</dc:creator>
		<pubDate>Fri, 12 May 2006 18:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/#comment-34</guid>
		<description>Alrightttt! :) good for you!
What are you building? Must be something interesting.

Anyways, good luck on the road ahead..</description>
		<content:encoded><![CDATA[<p>Alrightttt! :) good for you!<br />
What are you building? Must be something interesting.</p>
<p>Anyways, good luck on the road ahead..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristina</title>
		<link>http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/comment-page-1/#comment-33</link>
		<dc:creator>Kristina</dc:creator>
		<pubDate>Fri, 12 May 2006 17:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/#comment-33</guid>
		<description>Just to add,,,, it works,,, I managed to get the provider to wildcard my domain :) and I am using mod_rewrite to access subdomains on the fly</description>
		<content:encoded><![CDATA[<p>Just to add,,,, it works,,, I managed to get the provider to wildcard my domain :) and I am using mod_rewrite to access subdomains on the fly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristina</title>
		<link>http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/comment-page-1/#comment-32</link>
		<dc:creator>Kristina</dc:creator>
		<pubDate>Fri, 12 May 2006 05:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://irafi.com/post/2006/04/27/creating-wildcard-subdomains-controllerdispatcher/#comment-32</guid>
		<description>I have a question for you...

First though,,,, I realy appreciate this post,, it is the first one in the line of many that makes some sense.
Good work...


Now here is what I have on my hands....

I have a hosting account with hostgator and have access to cPanel but no access to WHM...Not to mention that I can't edit my http.conf file as I please. However, I spoke to their support and as the first response so far, they suggested that I use PHP to accomplish what I need by somehow passing the variables to cPanel.... So they have no problem with me finding the workaround for my needs.

No access to WHS,, therefore,,, I can't EDIT DNS ZONE myself. I am pretty sure they would edit it for me but I would like to explain some things to myself first.

I have a situation where I want to accomplish this....

If I have:

www.mydomain.com/somefolder 

I would like it to apear as:

somefolder.mydomain.com

Is what you are suggesting in your post a partial soluiton to what I am after???

That being...

If I edited (or if they edited) my DNS zone in WHM by simply changing the A record like this:

*.mydomain.com. 14400 IN A xx.xx.xx.xx

and then I use .htaccess file like this

RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com?$
RewriteCond %{HTTP_HOST} ^([^.]+)\.mydomain\.com?$
RewriteRule ^$ /subdomainfolder/index.html [L]

(how do I read out the "subdomainfolder" from a browser window call?)

Or,do I use PHP code in index.php as you sugested:



I should have the solution DONE??

Goodness I know I killed you with this post but I am almost desperate...
Plus I am not a savy PHP developer,,, worked the desktop stuff for too long?

Thank you :)</description>
		<content:encoded><![CDATA[<p>I have a question for you&#8230;</p>
<p>First though,,,, I realy appreciate this post,, it is the first one in the line of many that makes some sense.<br />
Good work&#8230;</p>
<p>Now here is what I have on my hands&#8230;.</p>
<p>I have a hosting account with hostgator and have access to cPanel but no access to WHM&#8230;Not to mention that I can&#8217;t edit my http.conf file as I please. However, I spoke to their support and as the first response so far, they suggested that I use PHP to accomplish what I need by somehow passing the variables to cPanel&#8230;. So they have no problem with me finding the workaround for my needs.</p>
<p>No access to WHS,, therefore,,, I can&#8217;t EDIT DNS ZONE myself. I am pretty sure they would edit it for me but I would like to explain some things to myself first.</p>
<p>I have a situation where I want to accomplish this&#8230;.</p>
<p>If I have:</p>
<p><a href="http://www.mydomain.com/somefolder" rel="nofollow">http://www.mydomain.com/somefolder</a> </p>
<p>I would like it to apear as:</p>
<p>somefolder.mydomain.com</p>
<p>Is what you are suggesting in your post a partial soluiton to what I am after???</p>
<p>That being&#8230;</p>
<p>If I edited (or if they edited) my DNS zone in WHM by simply changing the A record like this:</p>
<p>*.mydomain.com. 14400 IN A xx.xx.xx.xx</p>
<p>and then I use .htaccess file like this</p>
<p>RewriteEngine On<br />
RewriteRule ^\.htaccess$ - [F]<br />
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com?$<br />
RewriteCond %{HTTP_HOST} ^([^.]+)\.mydomain\.com?$<br />
RewriteRule ^$ /subdomainfolder/index.html [L]</p>
<p>(how do I read out the &#8220;subdomainfolder&#8221; from a browser window call?)</p>
<p>Or,do I use PHP code in index.php as you sugested:</p>
<p>I should have the solution DONE??</p>
<p>Goodness I know I killed you with this post but I am almost desperate&#8230;<br />
Plus I am not a savy PHP developer,,, worked the desktop stuff for too long?</p>
<p>Thank you :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
