![]() |
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:
|
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. |
I might actually know the answer to this one! :D
Sparky - would this work? PHP Code:
|
Quote:
This article explains it pretty well: The rundown on 301 and 302 redirects |
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. |
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 Code:
Redirect / http://www.domain.com/ Code:
header("Location: http://newsite.com/"); Code:
ErrorDocument 404 http://newsite.com Code:
RewriteEngine on |
Gotcha, thanks for the info! |thumb
|
Quote:
|
All times are GMT -4. The time now is 10:46 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc