RewriteEngine On # Redirect all requests to the public directory where the front controller lives RewriteCond %{REQUEST_URI} !^/public/ RewriteRule ^(.*)$ public/$1 [L] # Ensure the public front controller is used as the default directory index DirectoryIndex public/index.php