Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Search Engines (http://www.greenguysboard.com/board/forumdisplay.php?f=13)
-   -   Best way to redirect a .net domain to a .com (http://www.greenguysboard.com/board/showthread.php?t=21213)

Verbal 2005-06-23 11:02 AM

Best way to redirect a .net domain to a .com
 
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 Code:

<?php
header
("Location: http://www.blah.com/"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>


cd34 2005-06-23 11:29 AM

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 12:19 PM

I might actually know the answer to this one! :D

Sparky - would this work?

PHP Code:

Redirect http://www.domain.com/ 


Verbal 2005-06-23 01:52 PM

Quote:

Originally Posted by cd34
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

H2ohNeil 2005-06-23 01:54 PM

Hello Verbal,

You can park one domain on the other very easily through your Control Panel.

H2ohNeil

cd34 2005-06-23 01:58 PM

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 02: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?

cd34 2005-06-23 02:13 PM

sorry, by the time I read and posted, a few people put responses in.

Results in 302
Code:

Redirect / http://www.domain.com/
Results in 302
Code:

  header("Location: http://newsite.com/");
?>

Results in 302
Code:

ErrorDocument 404 http://newsite.com
Results in 301
Code:

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 02:31 PM

Gotcha, thanks for the info! |thumb

Greenguy 2005-06-23 05:23 PM

Quote:

Originally Posted by cd34
...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 :(


All times are GMT -4. The time now is 07:14 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc