Forum Moderators: phranque

Message Too Old, No Replies

Non-www doesn't work right away

         

StoutFiles

9:16 pm on Jan 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's my rewrite code:

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?

g1smd

9:21 pm on Jan 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Flush the browser cache first and try again.

There's no rewrite here. What you have is a redirect.

jdMorgan

12:01 am on Jan 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



"Won't find the web site" sound like a DNS problem, depending on the exact message you're seeing (you didn't quote it).

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