PDA

View Full Version : Can we control which domain Yahoo/Slurp indexes



chris_g
05-07-2004, 10:22 AM
Is there a way to control which domain name Yahoo/Slurp indexes for a website? The website has 2 domain names pointed to the same website.

Yahoo has completely indexed one of the domains, the second and preferred domain only has a couple pages indexed. We would like the second domain indexed instead since since it appears more professional in the results. Is there a way we can get Yahoo/Slurp to replace one domain for the other?


Can one domain be excluded in the robots.txt file for Yahoo/Slurp and what would the commnd look like?

Mel
05-08-2004, 01:15 AM
HI Chris since both domain names point to the same content all you need to is to put a 301 redirect from the site you do not want indexed pointing to the site you do want indexed. Your webhost should be able to assist you in doing this.

jestep
05-11-2004, 02:01 PM
I would either use a robots.txt to block the domain you dont want traffic on or use, 301 redirect. Here is a PHP version that I have had good results with.

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yournewsite.com");
exit();?>

chris_g
05-18-2004, 01:02 AM
jestep wrote
I would either use a robots.txt to block the domain you dont want traffic on or use, 301 redirect. Here is a PHP version that I have had good results with.

The server this site resides on is Windows 2000 IIS and they don't allow PHP or CGI scripts. The site is mostly ASP pages so I could use a ASP script to redirect.

Does anyone know if Yahoo has a tech support email address? Unable to find any tech support on their website for search (excluding directory) results.