Drupal, Clean URL and GoDaddy – An Actual Simple Solution

by on December 2, 2008

If you want to use Clean URL with Drupal on GoDaddy hosting when using any sort of virtual or shared hosting account (one where you can share multiple URL’s on one virtual or Deluxe hosting account using different domains mapped to different directories), do this:

  1. In the GoDaddy File Manager, go to the Directory for the domain you need to change.
  2. Edit the .htaccess file
  3. Change the following in the file from this:

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

to this

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

Save the file and you’re done.  Remove one “#” and it works.

I just spent 45 minutes doing the crappy forum/blog/search dance where the first result in Google had THE WRONG ANSWER saying it couldn’t be done unless you were using the root domain (total Bullsh*t), the next 5 results in Google didn’t have the actual answer, just other people complaining about how they can’t find a solution, ditched Godaddy and/or Drupal and/or computing in general because of it, etc.  And then the 6th result had the answer buried in the comments section after 10 pieces of completely bad advice.  I won’t link you any of these because I don’t want to help their SERPs and screw over someone else.

So if you found this post and it had the answer you needed, please help your fellow computing people and link to it from anywhere (blog, forum, Digg, anywhere you can) so that it rises in the search engines for when people search for Drupal and GoDaddy and Clean URLs so they don’t have to face the same pain I did!

{ 3 comments… read them below or add one }

Brendan June 6, 2009 at 8:11 pm

thanks! this worked for me!

alangh July 31, 2009 at 12:06 am

You made my day! Thanks for the tip.

Hans August 2, 2011 at 3:21 am

Verry nice clear info! Thank you!

This can also affect anything that uses “mod_rewrite” for nice URL’s

Including as example; Wordpress, phpBB, Joomla!, Drupal, Mediawiki & many more.

Anyone migrating from a dedicated, to a cloud/shared server such as Godaddy & using mod_rewrite with the software I listed above will have a problem this webpage can help them fix.

Just wanted to add that to maybe help searchers find this.

Leave a Comment

Previous post:

Next post: