Forum Moderators: phranque
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
example.com rewrites to http://www.example.com once I've already connected to the server...but if I type in example.com the first time I try to access the site it won't find the website. Any possible reasons?
If this is a newly-registered domain or if you have changed server IP addresses recently, it is quite possible that the updated DNS information has not yet propagated.
If no such changes have been made, then there may be a DNS conflict caused by someone somewhere in world typing something wrong into a DNS record, and declaring it authoritative -- Either accidentally or maliciously.
Jim