|
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
2005-06-23, 11:02 AM | #1 |
Verbal prefers 56K
|
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:
__________________
Verbal |
2005-06-23, 11:29 AM | #2 |
a.k.a. Sparky
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 |
2005-06-23, 12:19 PM | #3 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
I might actually know the answer to this one!
Sparky - would this work? PHP Code:
|
2005-06-23, 01:52 PM | #4 | |
Verbal prefers 56K
|
Quote:
This article explains it pretty well: The rundown on 301 and 302 redirects
__________________
Verbal |
|
2005-06-23, 01:54 PM | #5 |
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
|
Hello Verbal,
You can park one domain on the other very easily through your Control Panel. H2ohNeil |
2005-06-23, 01:58 PM | #6 |
a.k.a. Sparky
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 |
2005-06-23, 02:02 PM | #7 |
Verbal prefers 56K
|
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 |
2005-06-23, 02:13 PM | #8 |
a.k.a. Sparky
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/ Code:
<?php header("Location: http://newsite.com/"); ?> Code:
ErrorDocument 404 http://newsite.com Code:
RewriteEngine on RewriteRule .* http://domain.com/ [R=301,L]
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2005-06-23, 02:31 PM | #9 |
Verbal prefers 56K
|
Gotcha, thanks for the info!
__________________
Verbal |
2005-06-23, 05:23 PM | #10 | |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
Quote:
|
|
|
|