Posted by WebmistressM on October 14, 2009 at 3:30pm
Im finding sites online that run on Drupal but display a bit of inconsistancy. If you go to http://domain.com than the site works fine. However if I visit http://www.domain.com, than I get the "site offline" message. I had a similar problem with something like that using Wordpress so Im curious in what is affecting things in that adverse way.
From what I have seen, most people correct this with a band-aid by just setting a redirect on canonical names. Would this be a problem with Drupal or a problem with the domain registrar and how the DNS is set up?
Comments
Update:
I did change the htaccess file to read the following:
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
RewriteCond %{HTTP_HOST} ^cra.sh$ [NC]
RewriteRule ^(.*)$ http://www.cra.sh/$1 [L,R=301]
but sadly, if you go in to the site through http://www.cra.sh, you get the site-offline. If you actually refresh (F5) than it gives the site. Not sure why Drupal is still placing the site-offline when someone initially accesses the site through http://www.cra.sh instead of http://cra.sh. People will not refresh the page or know to refresh the page so this is a problem.