Greenguy's Board


Go Back   Greenguy's Board > Search Engines
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-06-23, 11:02 AM   #1
Verbal
Verbal prefers 56K
 
Verbal's Avatar
 
Join Date: Sep 2003
Location: Chicago, IL
Posts: 563
Send a message via ICQ to Verbal
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;
?>
__________________
Verbal
Verbal is offline   Reply With Quote
Old 2005-06-23, 11:29 AM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-06-23, 12:19 PM   #3
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,775
Send a message via ICQ to Greenguy
I might actually know the answer to this one!

Sparky - would this work?

PHP Code:
Redirect http://www.domain.com/ 
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2005-06-23, 01:52 PM   #4
Verbal
Verbal prefers 56K
 
Verbal's Avatar
 
Join Date: Sep 2003
Location: Chicago, IL
Posts: 563
Send a message via ICQ to Verbal
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
__________________
Verbal
Verbal is offline   Reply With Quote
Old 2005-06-23, 01:54 PM   #5
H2ohNeil
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
H2ohNeil's Avatar
 
Join Date: Jun 2005
Posts: 25
Send a message via AIM to H2ohNeil
Hello Verbal,

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

H2ohNeil
H2ohNeil is offline   Reply With Quote
Old 2005-06-23, 01:58 PM   #6
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-06-23, 02:02 PM   #7
Verbal
Verbal prefers 56K
 
Verbal's Avatar
 
Join Date: Sep 2003
Location: Chicago, IL
Posts: 563
Send a message via ICQ to Verbal
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?
__________________
Verbal
Verbal is offline   Reply With Quote
Old 2005-06-23, 02:13 PM   #8
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
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:
<?php
  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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-06-23, 02:31 PM   #9
Verbal
Verbal prefers 56K
 
Verbal's Avatar
 
Join Date: Sep 2003
Location: Chicago, IL
Posts: 563
Send a message via ICQ to Verbal
Gotcha, thanks for the info!
__________________
Verbal
Verbal is offline   Reply With Quote
Old 2005-06-23, 05:23 PM   #10
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,775
Send a message via ICQ to Greenguy
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
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:02 PM.


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