We have a website "www.testa-omega3.com" with 3 different languages (DE, EN, NL). Our default language is Dutch (NL), which is currently the main domain.
The DE and EN language are in a sub-directory:
- www.testa-omega3.com/de/
- www.testa-omega3.com/en/
When we enter the full url's in the browser it will show the correct page. The non-www for the DE and EN is not redirecting correctly.
These:
testa-omega3.com/en
testa-omega3.com/en/
testa-omega3.com/de
testa-omega3.com/de/
Are all redirecting to "www.testa-omega3.com"
Currently we have the following lines in our htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
What are we doing wrong?