Domain forward best for SEO

Hi,

I manage several domains on a dedicated server. Many customers buy multiple versions of domains to ensure no competitor snatches them up.
They ask me on the best way to forward them to the main domain.

Often I simply add a rewrite role into the virtual host entry such as:
RewriteRule ^/(.*) http://www.domain.com/$1 [L,R=301]

However, I am not really sure on best practice so that it would indexed as well in a search engine or at least does not penalize them.

So is it better to do a index.html file with a meta redirect, php redirect, etc.
What is the most compliant way to forward from lets say

www.domain.net
to
www.domain.com where the main website is located.

Best wishes,
Tom
ThomasPartnerAsked:
Who is Participating?
 
Tony McCreathTechnical SEO ConsultantCommented:
The 301 redirect means the source domain will not get indexed, and that's what you want.

It avoids issues related to duplicate content.

A zero second meta refresh redirect is often considered as equivalent to a 301 redirect, but it's a slower user experience and there is a chance it is considered as another form of redirect. So avoid them.

php will create the same sort of redirect that the .htaccess file makes. i.e. HTTP header response code based redirects.

So stick to what you are doing.
0
 
ThomasPartnerAuthor Commented:
Thanks for the advice, I feel better that someone seconded the procedure.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.