I\'m trying to get a CakePHP application to work. For this, I\'ve set up a brand new Debian installation, updated the configuration and put everything in /var/www, which has
The correct .htaccess is the default:
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
You have to add this in "/etc/apache2/sites-enabled/default":
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
if section already exists change AllowOverride None to AllowOverride All