I am having trouble enabling clean URLs in my local Debian 8 server.
mod_rewrite is enabled, pathauto enabled, set allowoverride to all in the section /var/www in apache2 .conf.
Renamed .htaccess in drupal root.
Not using virtual hosts for the moment.
In spite of al my efforts, test for clean URLs fails saying they cannot be enabled.
Please help.

Comments

Mohammed Nur’s picture

Did you find a solution yet...?

In my experience clean URLs is always due to server issues with either apache or nginx. Start, with a clean basic server.conf file and test with that. If that fails, try with nginx instead of apache and vice versa.

I hope this helps.

ckosloff’s picture

This problem is caused by the default apche2.conf directive to deny All overrrides in /Var/www/, so the drupal .htaccess rules cannot be executed, you can edit file to allow All, without spcifying any AccessFileName. Another way without messing with config files is to enable virtual hosting in the local server where you can specify in the .conf file the directive for that folder, that is the best way, because without virtual hosting your internal links will be messed up anyway.

ckosloff