I just moved to a new Host with my website and reinstalled the web server (this time apache 2.4) I'm not very used to the virtual hosts, but I managed to get my subdomain forum.domain.de running (working directory /var/www/html/forum.domain.de Now what I wanted was that if someone trys to go on domain.de that he will be redirected to the forum.domain.de
for that I created a simple index.php in /var/www/html with a 301 redirect to the forum.domain.de
when I now try to connect www.domain.de it will redirect me to the forum, but if I try to connect to domain.de (without "www." all I get is a connection timed out...
<?php header('Location: http://forum.domain.de/index.php');