try another color:
try another fontsize: 60% 70% 80% 90%

Drupal on Godaddy in a Directory with Clean URL's

Now that I've installed Drupal on Godaddy hosting a few times (and on my own services here at Sustainable Online Solutions) I've worked my way through a few of the more technical issues, one of them being installing Drupal in a directory. In this particular case I've actually purchased advanced hosting and am installing Drupal one level down from the account root in folders dediated to individual sites.

Everything goes like normal as follows: download Drupal, upload the Drupal files to your hosting space, change the permissions on Sites > Default > default.settings.php to 755 so that all users on the system have read and execute priviledges (you can use Fetch to do this, Dreamweaver won't cut it) I've put a screenshot below to help you out ;) just right click the file and select "get info" and you'll see this screen in Fetch.

drupal default.settings.php 755 permissions

Once you've done all of that you could go to the URL pointing to your new installation of Drupal and begin setting it up with the wizard but when you get to the third screen you will see that "enable clean URLs" is grayed out. In order to get this option working you'll need to edit the htaccess file.

I've done another short tutorial about configuring a normal htaccess file for Drupal and reall the only difference here is a little line at the very bottom. That line is RewriteBase / and it's added near the bottom right after # Rewrite URLs of the form 'index.php?q=x'. For your convenience I've included the working code from my site below:

 

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.

Order allow,deny
# Don't show directory listings for URLs which map to a directory. Options -Indexes # Follow symbolic links in this directory. Options +FollowSymLinks # Customized error messages. ErrorDocument 404 /index.php # Set the default handler. DirectoryIndex index.php # Override PHP settings. More in sites/default/settings.php # but the following cannot be changed at runtime. # PHP 4, Apache 1.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# PHP 4, Apache 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# PHP 5, Apache 1 and 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# Requires mod_expires to be enabled.
# Enable expirations.
ExpiresActive On

# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600

# Do not cache dynamically generated pages.
ExpiresByType text/html A1
# Various rewrite rules.
RewriteEngine on

# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

# Rewrite URLs of the form 'index.php?q=x'.
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# $Id: .htaccess,v 1.90 2007/10/05 14:43:23 dries Exp $

 

 

AttachmentSize
drupal-permissions-755.png17.99 KB