2.14.5.10. Enabling Clean URLs in Drupal 5 and 6

To turn on «beautiful links» in Drupal versions 5 and 6 you need to root directory of the site create file .htaccess with content like this:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

After that, in your Drupal control panel under "Control → Site settings → Clean links" include clean links.

Content