Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2011
    Thanked 0 Times in 0 Posts

    changed server still shows old site on www.

    Something VERY odd is going on....

    I changed hosting company and the DNS of the domain to point to the new server and hosting.

    If I type in domain.com then it throws a 500 internal server error - if I remove the .htaccess the new site loads.

    If I type in www.domain.com then it goes to the old hosting which is still online.

    I am completely confused here and think it is due to the domain and .htaccess.

    The .htaccess tells all URLs to be www. and I think that is the cause. If I remove that section of the .htaccess the problem is still not solved though...

    ANy ideas what could be going on here?


  2. #2
    New Coder
    Join Date
    Jul 2011
    Thanked 13 Times in 13 Posts
    Your old hosting being shown when you visit the www. version of the domain name means that your DNS settings are either incorrect, cached or not fully propagated. It indicates essentially that the a record for www. is pointing to a different IP address to the non-subdomain hostname.

    The 500 server error could be a number of things, it's going to be difficult to know what without knowing what was in the .htaccess file. The most likely cause is that you a.) were using mod_rewrite rules without mod_rewrite being enabled or b.) you had an infinite loop in your redirects.

  3. #3
    Senior Coder Inigoesdr's Avatar
    Join Date
    Mar 2007
    Florida, USA
    Thanked 406 Times in 398 Posts
    DNS can take up to 48 hours to propagate fully. Check your DNS settings, though. You likely have an A record for "www" that points explicitly to the old IP instead of using "@". Check your error log to see what is causing the 500 error.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts