2

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...

6
  • Show us how you did your redirect
    – John Conde
    Commented Sep 25, 2017 at 10:38
  • "Connection timeout" tells me it isn't even getting to Apache. You have a DNS problem. Commented Sep 25, 2017 at 10:41
  • @JohnConde <?php header('Location: http://forum.domain.de/index.php');
    – Tom
    Commented Sep 25, 2017 at 10:44
  • @StephenOstermiller yes that sounds most likely since it also works when i just enter the correct IP of my host, the domain was transfere from the old host but just some hours ago, propably - if its a DNS problem I guess I will just have to wait?
    – Tom
    Commented Sep 25, 2017 at 10:46
  • Your Apex record is not correct, not set, or not propogated. Commented Sep 25, 2017 at 11:18

1 Answer 1

2

SOLVED:

The problem was indeed a DNS problem BUT not on DNS-side when I checked the A record it pointed to the correct IP address, but the wrong IP address is cached somewhere on my local computer

ANSWER:

so how did I solve the problem was to flush the DNS caches:

  1. I was using Chrome Browser, flushing DNS cache like answered here and then flushing the socket pools like in the next answer

  2. flushing the Windows DNS cache like explained here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.