Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-13-2011, 11:48 AM   PM User | #1
listerdl
Regular Coder

 
Join Date: Mar 2011
Posts: 157
Thanks: 7
Thanked 0 Times in 0 Posts
listerdl is an unknown quantity at this point
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?

Thanks
listerdl is offline   Reply With Quote
Old 07-09-2011, 08:37 AM   PM User | #2
Cags
New Coder

 
Join Date: Jul 2011
Posts: 67
Thanks: 0
Thanked 13 Times in 13 Posts
Cags is an unknown quantity at this point
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.
Cags is offline   Reply With Quote
Old 07-09-2011, 06:56 PM   PM User | #3
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
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.
Inigoesdr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:00 PM.


Advertisement
Log in to turn off these ads.