<?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: foo.bar.com/baz/* -> new domain.com/*?</title>
	<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom/</link>
	<description>Comments on Ask MetaFilter post foo.bar.com/baz/* -> new domain.com/*?</description>
	<pubDate>Wed, 22 Mar 2006 10:39:16 -0800</pubDate>
	<lastBuildDate>Wed, 22 Mar 2006 10:39:16 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: foo.bar.com/baz/* -&gt; new domain.com/*?</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom</link>	
		<description>Is it possible to implement domain-part redirection on URLs, along these lines:

http://foo.bar.com/baz/0001.html

becomes

http://new.domain.com/0001.html

for any instance of &quot;foo.bar.com/baz/*&quot;, that segment of the URL is replaced by &quot;new.domain.com/*&quot;

If so, are there multiple methods? [MI] &lt;br /&gt;&lt;br /&gt; I think that this is possible if you have httpd.conf access under apache; however, in the instance I&apos;m trying to learn about, I do  not have that level of admin access. I do have DNS control over the second domain, but not the first. The page set at the first domain is my content, hosted by a commercial aggregator.&lt;br&gt;
&lt;br&gt;
I think I might be able to accomplish this by setting up a script at &quot;new.domain.com&quot; which would parse incoming URL requests and transfer the visitor to the &quot;foo.bar.com/baz&quot; URL.&lt;br&gt;
&lt;br&gt;
 Is there a readymade script I can gank to accomplish this?&lt;br&gt;
&lt;br&gt;
can i do what i need just in DNS?&lt;br&gt;
&lt;br&gt;
TIA!</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.34879</guid>
		<pubDate>Wed, 22 Mar 2006 10:34:34 -0800</pubDate>
		<dc:creator>mwhybark</dc:creator>
		
			<category>DNS</category>
		
			<category>hosting</category>
		
			<category>redirect</category>
		
	</item> <item>
		<title>By: justkevin</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom#543355</link>	
		<description>If you don&apos;t have the ability to modify httpd.conf, can you change settings with .htaccess?  If so, then this problem can be solved with &lt;a href=&quot;http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html&quot;&gt;mod_rewrite&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34879-543355</guid>
		<pubDate>Wed, 22 Mar 2006 10:39:16 -0800</pubDate>
		<dc:creator>justkevin</dc:creator>
	</item><item>
		<title>By: rajbot</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom#543364</link>	
		<description>Assuming that apache is configured correctly, you can use a RedirectMatch directive in .htaccess &lt;br&gt;
&lt;br&gt;
Something like:&lt;br&gt;
RedirectMatch /baz/(.*)$&#160;http://new.domain.com/$1</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34879-543364</guid>
		<pubDate>Wed, 22 Mar 2006 10:50:48 -0800</pubDate>
		<dc:creator>rajbot</dc:creator>
	</item><item>
		<title>By: mwhybark</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom#543384</link>	
		<description>Thanks, I will try both these methods today and note what happens. I don&apos;t know offhand if our main domain host permits .htaccess.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34879-543384</guid>
		<pubDate>Wed, 22 Mar 2006 11:02:57 -0800</pubDate>
		<dc:creator>mwhybark</dc:creator>
	</item><item>
		<title>By: Good Brain</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom#543391</link>	
		<description>Just a note.  Even if a host gives you .htaccess support, they may not let you put mod_rewrite or mod_alias rules there (though many do).  &lt;br&gt;
&lt;br&gt;
Another other option would be to create a bunch of dummy HTML pages to replace the originals that use a meta redirect to the new location.  Not all that complicated, but I don&apos;t know of any ready-made scripts to do it for you.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34879-543391</guid>
		<pubDate>Wed, 22 Mar 2006 11:10:49 -0800</pubDate>
		<dc:creator>Good Brain</dc:creator>
	</item><item>
		<title>By: mwhybark</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom#543412</link>	
		<description>nope, .htaccess is disallowed. Shoot.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34879-543412</guid>
		<pubDate>Wed, 22 Mar 2006 11:29:22 -0800</pubDate>
		<dc:creator>mwhybark</dc:creator>
	</item><item>
		<title>By: mwhybark</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom#543422</link>	
		<description>Oh, hilarity. I just realized we already have DNS forwarding set up; the commercial aggregator renders their pages into frames which led me to overlook just testing to see if forwarding was already in place. &lt;br&gt;
&lt;br&gt;
I&apos;m placing a pancake on my head at this very moment.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34879-543422</guid>
		<pubDate>Wed, 22 Mar 2006 11:39:15 -0800</pubDate>
		<dc:creator>mwhybark</dc:creator>
	</item><item>
		<title>By: chazlarson</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom#543475</link>	
		<description>&lt;blockquote&gt;I&apos;m placing a pancake on my head at this very moment.&lt;/blockquote&gt;&lt;br&gt;
What&apos;s the story behind that phrase?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34879-543475</guid>
		<pubDate>Wed, 22 Mar 2006 12:06:20 -0800</pubDate>
		<dc:creator>chazlarson</dc:creator>
	</item><item>
		<title>By: mwhybark</title>
		<link>http://ask.metafilter.com/34879/foobarcombaz-new-domaincom#543976</link>	
		<description>See &lt;a href=&quot;http://www.metafilter.com/mefi/22721&quot;&gt;this&lt;/a&gt; as a starter.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34879-543976</guid>
		<pubDate>Wed, 22 Mar 2006 19:20:47 -0800</pubDate>
		<dc:creator>mwhybark</dc:creator>
	</item>
	</channel>
</rss>
