多个扩展redirect到一个

我用不同的扩展名(.fr,.com,.org,.net)购买了一个名,我听说SEO对于将它们全部redirect到一个域名是非常糟糕的。

我的问题很简单。 我该怎么做? 我有一个带有Apache2的VPS。

谢谢!

让所有的域指向一个networking服务器,并像这样configuration(给Apache的示例):

# Necessary for named vhosts NameVirtualHost *:80 <VirtualHost *:80> # Accept all domains for this vhost ServerName foo.com ServerAlias foo.fr ServerAlias foo.org ServerAlias foo.net RewriteEngine on # Match requests that don't have the main domain only... RewriteCond %{HTTP_HOST} (?:www\.)?foo\.(?:fr|org|net) # ... rewrite them to use the main domain RewriteRule ^/(.*)$ http://foo.com/$1 [R,L] </VirtualHost>