I just switched from Mosso to Bluehost. My Drupal database is running fine, but everything is totally unformatted--no CSS, no images, no javascript.

I assume this has something to do with how these two hosts treat the URL structure; something in .htaccess I'm guessing.

I switch nameservers about 6 hours ago, so I don't think it's a propagation problem--BlueHost said to give it 3-4 hours.

Thanks very much for any help!

Comments

dnewkerk’s picture

Try clearing the cache at Site configuration > Performance. Also check that the "files" directory has the correct permissions, as if CSS and JS aggregation is turned on (for improved performance) the combined file has to be written to the files directory by Drupal. Test whether you are able to upload an attachment to a node to see if the file will upload correctly. Not only does the files directory have to be writable, but it also has to be owned by the apache user... if it is not, you can contact your new host to ask them to do this for you.

Hope this helps.

jkestler’s picture

Thanks Keyz. I tried those suggestions and am still getting the same result. The files dir is writeable; I'll check with the host about apache ownership.

Any other ideas? Thanks again!

mtsanford’s picture

If you look at HTML source as delivered to browser, and try to open the CSS/javascript URLs directly in another window can you do it? What do the URLs look like?

Also check out in .htaccess:

# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

jkestler’s picture

Thanks for your suggestions. Here's a typical page from the site so you can see the source:

http://bit.ly/lHRqM

I checked out .htaccess but I don't think the RewriteBase is the issue--I changed it and got same results.

BlueHost tech support sent me the following response. Do you think it would help to reinstall with simple scripts? I did the first install manually.

Thanks again!

----

Dear Customer,

Unfortunately this is a scripting issue. We apologize for the inconvenience. Probably the easiest way to fix this is to back up your database and themes/plugins (and whatever other post-installation customizations) then uninstall the installation and reinstall a fresh one from simple scripts. After a fresh install, import the database and other files back into the server (and set them to work under this drupal installation) and it should be good as new, with minor tweaking if needed.
Otherwise, you will have to get into the mess of the coding and find out what is wrong.

Thank you,
Kelcey
Technical Support Engineer
BlueHost.com

jkestler’s picture

Just in case anybody else has this problem, here's the reply from BlueHost tech support that solved it:

Your style wasn't coming up on the front page because you had this rewrite rule in your .htaccess file:

RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

I un-commented out the second line so that your script could find the directories necessary for your styles.

In addition, be sure to check these two issues:

1) Are you using BlueHost's temporary URL instead of your actual domain URL? If so, be sure to change your baseURL settings in settings.php accordingly.

2) Have you cleared your browser cache (not your Drupal cache)? I was seeing an old copy of my site for a while until I realized this problem.

Good luck!