I want to clean URL in Drupal but get the test failed, and that what I have done in my httpd.conf :

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

I have also enabled the mod_rewrite but got an error! Any idea?


It's a little hard to answer your question without knowing your setup, e.g. operating system, drupal version and the location, where your site is hosted (are you trying to view it on localhost or on a remote host?).

If you are running Drupal 7, clean urls should be enabled by default. So, maybe the following does help:

If the url you are accessing is


change it to


... and test again. Does it still fail?

source: https://drupal.org/node/1572984#comment-6751806

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.