<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-992226187759619576.post5313700162036329885..comments</id><updated>2011-02-23T14:12:11.935+05:30</updated><category term='flash'/><category term='openid'/><category term='Notification'/><category term='Youtube'/><category term='SQL'/><category term='icons'/><category term='Encoding'/><category term='Connection'/><category term='Game'/><category term='Image'/><category term='plug-in'/><category term='Scrolling'/><category term='Delete'/><category term='Windows'/><category term='Advertising'/><category term='Form'/><category term='Web'/><category term='Photoshop'/><category term='Testing'/><category term='base64'/><category term='t-shirt'/><category term='RSS'/><category term='Drag'/><category term='Graphics'/><category term='Nikon'/><category term='Projects'/><category term='List'/><category term='Marketing'/><category term='Flex'/><category term='eclipse'/><category term='Ideas'/><category term='Pagination'/><category term='google plus'/><category term='EC2'/><category term='News'/><category term='Painting'/><category term='Adobe'/><category term='9lessons'/><category term='checkbox'/><category term='jQuery'/><category term='CSS'/><category term='Rails'/><category term='URL'/><category term='Gmail'/><category term='Buttons'/><category term='Design'/><category term='XML'/><category term='Awesome Developer'/><category term='Inspiration'/><category term='SDK'/><category term='Twitter API'/><category term='Smarty'/><category term='Labs'/><category term='Table'/><category term='HTML'/><category term='OOP'/><category term='Payment'/><category term='Drawings'/><category term='Hacking'/><category term='Architecuture'/><category term='Free'/><category term='Upload'/><category term='Jsp'/><category term='google'/><category term='Geo'/><category term='Twitter'/><category term='javascript'/><category term='Email'/><category term='OAuth'/><category term='Technology'/><category term='Iphone'/><category term='Captcha'/><category term='Regular_Expressions'/><category term='Mysql'/><category term='Photos'/><category term='Wallpaper'/><category term='Logos'/><category term='Ajax'/><category term='Tutorials'/><category term='Programming'/><category term='Compute'/><category term='Fanpage'/><category term='Videos'/><category term='Drop'/><category term='Clone'/><category term='SMTP'/><category term='Hosting'/><category term='Blackberry'/><category term='Resources'/><category term='Chrome'/><category term='Language'/><category term='amazon'/><category term='Function'/><category term='Framework'/><category term='Scripts'/><category term='Smartphone'/><category term='Curl'/><category term='JSON'/><category term='Websites'/><category term='Facebook'/><category term='Yahoo'/><category term='Concepts'/><category term='Application'/><category term='MooTools'/><category term='Realistic'/><category term='Cloud'/><category term='HTML5'/><category term='Mail'/><category term='Mobile'/><category term='Reports'/><category term='php'/><category term='Spread Sheet'/><category term='Cropping'/><category term='Extension'/><category term='Wall'/><category term='WebDesign'/><category term='Popular'/><category term='Search'/><category term='Java'/><category term='Air'/><category term='API'/><category term='jQueryBasics'/><category term='Edit'/><category term='Extention'/><category term='Bing'/><category term='Browser'/><category term='blogger'/><category term='SEO'/><category term='Ruby'/><category term='CSS3'/><category term='Database'/><category term='Validation'/><category term='C prorgramming'/><category term='Object-oriented'/><category term='Update'/><category term='Foreign'/><category term='htaccess'/><category term='Paypal'/><category term='Rewriting'/><category term='TED'/><category term='Bug Tracking'/><category term='profile'/><category term='Login'/><title type='text'>Comments on 9lessons Programming Blog: Redirect The Sub Domain To a Sub Folder with .htac...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.9lessons.info/feeds/5313700162036329885/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html'/><author><name>Srinivas Tamada</name><uri>http://www.blogger.com/profile/17418084732618477326</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-7w94UgQpyNg/ThansTGlhtI/AAAAAAAAEs4/hVW2tEEVihw/s1600/avatar.php%253Fgravatar_id%253D7a9e87053519e0e7a21bb69d1deb6dfe'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-6595492240183892922</id><published>2011-02-23T01:16:12.834+05:30</published><updated>2011-02-23T01:16:12.834+05:30</updated><title type='text'>Hai..Thanks for this simple and powerful idea.

I ...</title><content type='html'>Hai..Thanks for this simple and powerful idea.&lt;br /&gt;&lt;br /&gt;I will do this</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/6595492240183892922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/6595492240183892922'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1298403972834#c6595492240183892922' title=''/><author><name>si dekil</name><uri>http://www.sidekildarisurabaya.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-693533032'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-2676999126048012664</id><published>2011-02-02T15:15:36.384+05:30</published><updated>2011-02-02T15:15:36.384+05:30</updated><title type='text'>what i write in my php link after completed rewrit...</title><content type='html'>what i write in my php link after completed rewrite rule.&lt;br /&gt;Can any one help me?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/2676999126048012664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/2676999126048012664'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1296639936384#c2676999126048012664' title=''/><author><name>only</name><uri>http://www.blogger.com/profile/08302302058232359119</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-724931023'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-1823429749894357991</id><published>2010-03-01T15:41:43.644+05:30</published><updated>2010-03-01T15:41:43.644+05:30</updated><title type='text'>fake sub domain thanx... nice code.</title><content type='html'>fake sub domain thanx... nice code.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/1823429749894357991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/1823429749894357991'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1267438303644#c1823429749894357991' title=''/><author><name>fare</name><uri>http://www.sibelilaclama.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1108659813'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-4780681238271321027</id><published>2010-02-10T16:41:59.589+05:30</published><updated>2010-02-10T16:41:59.589+05:30</updated><title type='text'>that was helpful, working on an old fashioned site...</title><content type='html'>that was helpful, working on an old fashioned site that doesn&amp;#39;t automate this and had to do this the hard way.  :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/4780681238271321027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/4780681238271321027'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1265800319589#c4780681238271321027' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2046298917'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-7902567911585889845</id><published>2010-01-27T01:52:48.661+05:30</published><updated>2010-01-27T01:52:48.661+05:30</updated><title type='text'>And if i have a domain.com and want to migrate it ...</title><content type='html'>And if i have a domain.com and want to migrate it to weblog.domain.com, but maintain a new site on domain.com&lt;br /&gt;&lt;br /&gt;the .htacess would not work this way, since it wou8ld redirect all files, and i want the domain.com to remain intact.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/7902567911585889845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/7902567911585889845'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1264537368661#c7902567911585889845' title=''/><author><name>Daniel Kaiser</name><uri>http://www.blendup.com.br</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1283419205'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-2490671675863092646</id><published>2010-01-21T03:15:44.224+05:30</published><updated>2010-01-21T03:15:44.224+05:30</updated><title type='text'>I found this very useful:


        VirtualDocumen...</title><content type='html'>I found this very useful:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        VirtualDocumentRoot /www/%-2-%-1/%-3/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So DocumentRoots would be following:&lt;br /&gt;- domain.tld -&amp;gt; /www/domain-tld/_/&lt;br /&gt;- test.domain.tld -&amp;gt; /www/domain-tld/test/&lt;br /&gt;&lt;br /&gt;Hope it helps someone :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/2490671675863092646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/2490671675863092646'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1264023944224#c2490671675863092646' title=''/><author><name>Bergi</name><uri>http://bergi.eu.org</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1114419812'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-450171592229142423</id><published>2010-01-20T09:47:16.339+05:30</published><updated>2010-01-20T09:47:16.339+05:30</updated><title type='text'>hello

cool site</title><content type='html'>hello&lt;br /&gt;&lt;br /&gt;cool site</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/450171592229142423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/450171592229142423'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1263961036339#c450171592229142423' title=''/><author><name>Dat Tai</name><uri>http://www.blogger.com/profile/01932478937430477625</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_WboyriGhx0E/S0PoHNxP6nI/AAAAAAAAA5M/1hioMukKucQ/S220/SmashDesign.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1754821908'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-2423632668928431731</id><published>2010-01-15T20:20:31.109+05:30</published><updated>2010-01-15T20:20:31.109+05:30</updated><title type='text'>Mitendra, spaces in URIs are usually encoded (whic...</title><content type='html'>Mitendra, spaces in URIs are usually encoded (which is why you often see those percentages followed by numbers). I&amp;#39;m not sure whether mod_rewrite is aware of that, but if you can&amp;#39;t catch spaces as literals, you might want to check for &amp;quot;%20&amp;quot; (without the quotes), which is the URI encoding for regular spaces.&lt;br /&gt;&lt;br /&gt;Anonymous, it doesn&amp;#39;t work with your hosting package because the hosting package doesn&amp;#39;t forward unknown subdomains to your web root.&lt;br /&gt;&lt;br /&gt;The way this trick works is that the web server redirects a request for http://mysubdomain.mydomain.tld to the site configured at http://mydomain.tld (or whatever the default would be) and the web root of that web site contains a .htaccess file which redirects requests for URIs starting with http://mysubdomain.mydomain.tld to a sub-folder.&lt;br /&gt;&lt;br /&gt;Another important consideration is that the URIs is only rewritten internally, the user is not forwarded at any point, that is, his browser doesn&amp;#39;t receive a redirect. Only this way can you mask the real path http://mydomain.tld/mysubdomainfolder/… as http://mysubdomain.mydomain.tld/… — otherwise it would change what the user sees in the browser&amp;#39;s location bar.&lt;br /&gt;&lt;br /&gt;Also, if you are using this to put part of your website on a different subdomain and you have some way of authenticating visitors (e.g. a log-in system) or other things which rely on cookies, remember that cookies are only valid for exact domain names, including subdomains. So a cookie for mysubdomain.mydomain.tld can&amp;#39;t be read by www.mydomain.tld or just mydomain.tld — the browser won&amp;#39;t let you access it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/2423632668928431731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/2423632668928431731'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1263567031109#c2423632668928431731' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1554420534'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-3384195216505581770</id><published>2010-01-12T16:37:35.851+05:30</published><updated>2010-01-12T16:37:35.851+05:30</updated><title type='text'>I do not work. my hosting package, limited to 2 su...</title><content type='html'>I do not work. my hosting package, limited to 2 sub-domain name. I tried this method. failed. may exceed this limit, otherwise I?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/3384195216505581770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/3384195216505581770'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1263294455851#c3384195216505581770' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1821034948'/></entry><entry><id>tag:blogger.com,1999:blog-992226187759619576.post-5626818391922658448</id><published>2010-01-12T13:22:23.406+05:30</published><updated>2010-01-12T13:22:23.406+05:30</updated><title type='text'>nice script.

do you have idea about how to replac...</title><content type='html'>nice script.&lt;br /&gt;&lt;br /&gt;do you have idea about how to replace space with - like:-(mitendra chaurasia should be mitendra-chaurasia)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/5626818391922658448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/992226187759619576/5313700162036329885/comments/default/5626818391922658448'/><link rel='alternate' type='text/html' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html?showComment=1263282743406#c5626818391922658448' title=''/><author><name>Mitendra</name><uri>http://www.web-link.com.np</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.9lessons.info/2010/01/redirect-sub-domain-to-sub-folder-with.html' ref='tag:blogger.com,1999:blog-992226187759619576.post-5313700162036329885' source='http://www.blogger.com/feeds/992226187759619576/posts/default/5313700162036329885' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-538145781'/></entry></feed>
