I recently moved one of my sites from GoDaddy to Host Gator. My initial impressions of Host Gator are favorable compared to GoDaddy. One issue that vexed me almost immediately is attempting to set up and configure Drupal 7 on the new host while my DNS still pointed to the old hosting site.
I wanted the old site to be available until the new site was operational and I was ready to cut over. Tech Support was able to provide a temporary URL but it returned a 404 for everything except the home page. They were unable to figure out a solution and ultimately told me it was not possible with Drupal. Not a good sign for Host Gator support.
Ultimately I found that editing the sites/default/settings.php and changing the $base_url to http://your-server-ip-address/~username
Then edit the .htaccess file in the public_html directory.
Find the RewriteBase and change it to /~username.
These changes enabled all the functionality that I needed to configure the site and get it up and running.
When I am ready to make the switch, I just need to revert the changes.
Monday, October 10, 2011
Subscribe to:
Posts (Atom)