Clean url’s in drupal

drupal No Comments

Playing with drupal today it would not allow me to enable clean url’s, which changes posts from http://anouk.dynalias.com/drupal/?q=node/1 to http://anouk.dynalias.com/drupal/node/1.  I had to do the following to allow the check of the clean url’s enabled radio button.

Edit httpd.conf, in my case /usr/local/apache2/conf/httpd.conf and add the following directory directive:

<Directory “/work/html/drupal”>
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Edit drupal’s .htaccess file, in my case /work/html/drupal/.htaccess and change the following:

# RewriteBase /

to

RewriteBase /drupal

Now go back to your drupal admin page and hopefully the radio button should be ungrayed.