Search code examples
php.htaccesshttp-redirecthostnameservers

Weird thing going on with domain. if Entered without www.domain.com, goes to wrong host


Hey all I got a quick question for you that are more experienced than me with hosting etc :) I made a website and firs put it on one host and entered it's nameservers on my purchased domain website to link them of course. After that, I figured that host is too slow, so I changed to other host, and after that also changed my nameservers to be the ones of the new host. Now I have a problem, If someone goes to http://zipdaturl.com he gets redirected to the default index.php page of the old host and if it is with http://www.zipdaturl.com it goes to the correct one. What is it that I can do so that both of these go to the correct host ? I checked domain provider, both nameservers are pointing to the new correct host.


Solution

  • Yeah, www DNS caches are (I'm sure) registering latest host provider static IP for your website so this is "normal www behaviour" for a few days when you are changing hosts. Domain transfer is hugest www change (for one domain/website) and you always need few days for that to complete.

    In that period you have 2 (here and there) "hosts".

    Funny, depending on a location youre visiting your site, you can see actual site, or you can see old one - at the same time.

    But old one will vanish in few days. Enjoy!