I have been working for a little over a week to migrate a site from one shared host to another. The site is functional within a subdirectory (www.thrivingonsystems.com/thrivingonsystems), but the nodes which reference files with img tabs do not resolve properly, and I would prefer this to work without the subdirectory.
My new host is on Bluehost, a drupal partner, and setup was originally done using a simplescript install on their site, which generated this subdirectory of the same name as the domain I obtained when I set up the host account. The help files on bluehost provide a template for the .htaccess file to be set up on the public_html folder, which I've done:
# BlueHost.com
# .htaccess main domain to subdirectory redirect
# Do not change this line.
RewriteEngine on
# Change example.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?Thrivingonsystems.com$
RewriteCond %{REQUEST_URI} !^/thrivingonsystems/
# Don't change these line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /thrivingonsystems/$1
# Change example.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?thrivingonsystems$
RewriteRule ^(/)?$ thrivingonsystems/index.php [L]I have also modified the settings.php file in my sites/default folder to uncomment the $base_url and set it as follows:
$base_url = 'http://www.thrivingonsystems.com/thrivingonsystems'; // NO trailing slash!I've tried combinations of this with and without the subdirectory in the path, but without it, drupal renders partial content, with that rendered improperly.
I've noticed that there is also a .htaccess file in the directory where drupal is installed, which I modified per the instructions as follows:
RewriteBase /thrivingonsystems
Yet the site remains only accessible with the subdirectory, and remains unable to find the image files.
I've searched the knowledgebase on drupal and at bluehost, and tried all the combinations I can think of - no .htaccess in public_html, settings in different combinations, clearing cache, etc. Bluehost suggests that moving all the files up into the public_html subdirectory might work, but that would seem to close out other options in the future for subdomains, as well as being a radical step that would be rather difficult to undo if it doesn't work.
Can someone please suggest a drupal-centric solution that could address these problems?
Comments
Resolved by moving installation
The htaccess file worked fine when I moved the entire installation up one level, so it was installed in the public_html directory, rather than in a nested directory