# Command $a2enmod rewrite must be enabled if not working on Debian. This was tested on debian and apache 2 server Options -Multiviews RewriteEngine On # Specify the relative path from the parent folder indicated by the VirtualHost to the public folder RewriteBase /public RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]