Friday, February 24, 2012

Internal Server Error After Migrating a Drupal Site to Go Daddy

Scenario


You have your main domain in Go Daddy with a hosting account linked to it. You either have another domain or subdomain that you want to host on the same hosting account, so you go ahead and create a new subdirectory, and migrate your Drupal files into the newly created directory folder. Once the database has been imported and settings.php updated with the database details, you go to your site, is able to access the home page, but no other page is accessible - you get an Internal Server Error on any page that you try to open, even logging in ( from the home or front page ) gives you the same error.


Solutions to try


If Subdomain

On the root of your Drupal folder, look for the .htaccess file. Download to your local drive and open in a text editor, and uncomment the line:

RewriteBase /

See image below.



If on a Subdirectory

If you are not using a subdomain, but just a subdirectory, try uncommenting the line:

RewriteBase /drupal

Replace /drupal with the name of your drupal directory. See image below.


After saving the file, upload back to your server. Test and see if the change in .htaccess resolved the issue.

3 comments:

Anonymous said...

Thank you! Worked for me.

Anonymous said...

yes, work for me too. thanks.

Unknown said...

Purelocke... pure genius! Thanks for that tip - got me up and running immediately. Can't crosslink this post on blogger, but I'm putting it in my own blog on Drupal Tips.