httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas C. C. Hempel" <>
Subject [users@httpd] htaccess: .com and .net shall go to .de
Date Tue, 08 Nov 2011 21:19:39 GMT
Hi there,

I have a problem with an htaccess file.

I own three domains:, and They all refer to the same webhosting
space (= alias domains).

What I have succeeded in is that when I enter or it refers to
I did that with that entry in the .htaccess file:

# Enforce www
RewriteCond %{HTTP_HOST} !^(www) [NC]
RewriteRule ^(.*)$$1 [L,R=301]

What I want to add, is that when I enter or, I get forwarded
to Can anyone come up with a code for that?

Thank you for your anticipated help.

Best regards,


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message