ServerAdmin webmaster@localhost DocumentRoot /var/www/html Options -Indexes +FollowSymLinks AllowOverride All Require all granted DirectoryIndex disabled # Route all requests through the router RewriteEngine On # Don't rewrite if it's already going to /app/ RewriteCond %{REQUEST_URI} !^/app/ RewriteRule ^(.*)$ /app/router.php [L,QSA] ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined