Sunday, May 31, 2009

robots.txt with a 301 redirect

I'm trying to figure out how to do something that might just be
impossible. Before I give up, I'll see if anyone here can possibly add
some insight.

I have two domains:
1) domainone.com which I don't want indexed by search engines
2) domaintwo.com which I do want indexed by search engines

Any content I have on domainone.com, I want to hide from search
engines, but then I have a 301 .htaccess redirect sending visitors to
domaintwo.com for any addresses that don't match content on
domainone.com

So for example, say I have a file called privatephoto.jpg that's at
http://domainone.com/privatephoto.jpg
The I have another file called information.html at http://domaintwo.com/information.html

I want to hide http://domainone.com/privatephoto.jpg from Google, BUT
I want Google to be able to see http://domainone.com/information.html
(which is a 301 redirect)

Is this completely impossible?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Search Engine Optimization SEO Google - MSN - Yahoo" group.
To post to this group, send email to SEO1@googlegroups.com
To unsubscribe from this group, send email to SEO1+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/SEO1?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment