Clean url’s in drupal

4:00 pm drupal

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.

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.