hi,
i use pound + apache + proxmox
i got a lot of domains for a single main domain name
test.com www.test.fr test.fr www.test.ch www.test.lu ... => want to
redirect 301 to www.test.com
Got a redirect loop like this.
my configuration worked fine without pound and without proxmox.
But i need to redirect all domains with 301 to the main domain.
i saw if i redirect a domain to my own server who got this domain on the
server, there is the loop !
But if i try to redirect the same domain on www.google.fr it works.
there is a conflict in my configuration but i don't know where.
<VirtualHost *:80>
Servername test.com
Serveralias test.fr www.test.fr ... ...
RewriteEngine on
RewriteRule ^(.*)$ http://www.test.com$1 [L,R=301]
</VirtualHost>
and in a htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.test\.com$
RewriteRule ^(.*) http://www.test.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.test.com/ [R=301,L]
How to solve this ?
--
IbaSaW