View Full Version : Best way to redirect a .net domain to a .com
Verbal
2005-06-23, 12:02 PM
When I get a good .com domain I like to also pick up the .net version, but I usually don't put anything on there. What is the proper (and SEO friendly) way to foward someone from blah.net to blah.com?
Currently I just do it by putting this on index.php:
<?php
header("Location: http://www.blah.com/"); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>
If nothing is going there:
RewriteEngine on
RewriteRule .* http://domain.com/ [R=301,L]
Might confirm with a few SE gurus, but, my belief is that the 301 will not garner the scraping penalty.
Greenguy
2005-06-23, 01:19 PM
I might actually know the answer to this one! :D
Sparky - would this work?
Redirect / http://www.domain.com/
Verbal
2005-06-23, 02:52 PM
If nothing is going there:
RewriteEngine on
RewriteRule .* http://domain.com/ [R=301,L]
Might confirm with a few SE gurus, but, my belief is that the 301 will not garner the scraping penalty.
Yeah, I think this is probably a better way than what I'm doing. I'm also not really sure if the PHP redirect is a 301 or 302, etc. And from what I've read the 302 is the wrong way.
This article explains it pretty well: The rundown on 301 and 302 redirects (http://www.seotoday.com/browse.php/category/articles/id/477/index.php)
H2ohNeil
2005-06-23, 02:54 PM
Hello Verbal,
You can park one domain on the other very easily through your Control Panel.
H2ohNeil
That would still send a 302 which my understanding is not what google prefers.
Somewhere I read that google prefers a 301 or 404 to a 302.
Verbal
2005-06-23, 03:02 PM
From that article I posted above:
"Correctly setting up a “301 redirect” command can be a very fast and easy step for any web master or site owner if done correctly and if you know how to do it right. Don’t take chances of having your site banned like Business.com was earlier this year. A “302 redirect” command is an invitation for getting your site banned, since search engines don’t like temporary redirects."
Sparky is "That would still send a 302 which my understanding is not what google prefers." in response to me or H2ohNeil?
sorry, by the time I read and posted, a few people put responses in.
Results in 302
Redirect / http://www.domain.com/
Results in 302
<?php
header("Location: http://newsite.com/");
?>
Results in 302
ErrorDocument 404 http://newsite.com
Results in 301
RewriteEngine on
RewriteRule .* http://domain.com/ [R=301,L]
h20neil's suggestion of parking a domain on another, or overlaying, will also work. The problem there is that google could see both domains serving the same content and knock one out for the dupe page penalty.
Verbal
2005-06-23, 03:31 PM
Gotcha, thanks for the info! |thumb
Greenguy
2005-06-23, 06:23 PM
...The problem there is that google could see both domains serving the same content and knock one out for the dupe page penalty.Been there, done that, got penalized :(
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.