<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Redirecting a directory to a TLD?</title>
      <link>http://ask.metafilter.com/94341/Redirecting-a-directory-to-a-TLD/</link>
      <description>Comments on Ask MetaFilter post Redirecting a directory to a TLD?</description>
	  	  <pubDate>Tue, 17 Jun 2008 14:58:03 -0800</pubDate>
      <lastBuildDate>Tue, 17 Jun 2008 14:58:03 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Redirecting a directory to a TLD?</title>
  	<link>http://ask.metafilter.com/94341/Redirecting-a-directory-to-a-TLD</link>	
  	<description>Having problems with a TLD that lives as a subdirectory. &lt;br /&gt;&lt;br /&gt; I have recently become responsible for maintaining an organization&apos;s website. I&apos;m not a web guru by any means, this is just a small part of my duties. &lt;br&gt;
&lt;br&gt;
We are part of a larger organization that is currently hosting our site on their server. (http://www.example.com)   Our site is a subdirectory (foo/)... We have our own tld (foobar.com), but Google is currently only indexing us as www.example.com/foo. Is there a way we can have anybody who accesses us at example.com/foo be redirected so they are viewing us as foobar.com? The webserver is IIS 2003.</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.94341</guid>
  	<pubDate>Tue, 17 Jun 2008 14:35:47 -0800</pubDate>
  	<dc:creator>entropicamericana</dc:creator>
	
	<category>web</category>
	
	<category>tld</category>
	
	<category>topleveldomain</category>
	
	<category>subdirectory</category>
	
	<category>subdirectories</category>
	
	<category>redirect</category>
	
</item>
<item>
  	<title>By: chesty_a_arthur</title>
  	<link>http://ask.metafilter.com/94341/Redirecting-a-directory-to-a-TLD#1378878</link>	
  	<description>I think you mean you have your own domain name. .com is the TLD.&lt;br&gt;
&lt;br&gt;
There are several ways to create a redirect from example.com/foo to foobar.com. Here&apos;s &lt;a href=&quot;http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO_Common_URL_Redirection_Techniques_for_IIS_Summary.aspx&quot;&gt;a pretty comprehensive description&lt;/a&gt; of ways to redirect a domain name to a subdirectory with IIS. You&apos;ll need to answer some questions for yourself about the functionality you want the redirect to have and the author lays them out pretty well.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.94341-1378878</guid>
  	<pubDate>Tue, 17 Jun 2008 14:58:03 -0800</pubDate>
  	<dc:creator>chesty_a_arthur</dc:creator>
</item>
<item>
  	<title>By: tomwheeler</title>
  	<link>http://ask.metafilter.com/94341/Redirecting-a-directory-to-a-TLD#1378896</link>	
  	<description>If &lt;code&gt;http://www.example.com/foo/&lt;/code&gt; and &lt;code&gt;http://www.example.com/&lt;/code&gt; do &lt;i&gt;not&lt;/i&gt; point to the same place, then you should be able to simply set up a redirect in IIS.  It has been many years since I used IIS, but I recall that it was fairly intuitive to do this through the administration panel.&lt;br&gt;
&lt;br&gt;
If they do point to the same place, then you&apos;d likely wind up in an endless cycle of redirects by doing that.  In this case, the easiest thing might be to add some code to the default document in your &lt;code&gt;foo&lt;/code&gt; subdirectory  (it&apos;s typically named &lt;code&gt;default.asp&lt;/code&gt;) that will examine the requested URL and send an HTTP 301 (permanent redirect) code to the browser along with the new URL of &lt;code&gt;http://www.example.com/&lt;/code&gt;.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.94341-1378896</guid>
  	<pubDate>Tue, 17 Jun 2008 15:11:35 -0800</pubDate>
  	<dc:creator>tomwheeler</dc:creator>
</item>
<item>
  	<title>By: entropicamericana</title>
  	<link>http://ask.metafilter.com/94341/Redirecting-a-directory-to-a-TLD#1378910</link>	
  	<description>Oops. I misspoke about the TLD. &lt;br&gt;
&lt;br&gt;
Tom: The way it is set up is that example.com is hosting our website foo.com on their server at directory foo. So the content that lives at foo can be viewed by accessing example.com/foo or at foo.com. Right now our default page is index.htm... It sounds like I would be setting up an endless cycle of redirects, correct?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.94341-1378910</guid>
  	<pubDate>Tue, 17 Jun 2008 15:23:33 -0800</pubDate>
  	<dc:creator>entropicamericana</dc:creator>
</item>

    </channel>
</rss>
