RewriteEngine On # Route all requests (except existing files/dirs) to the API front controller RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [L]