Options -MultiViews RewriteEngine On ErrorDocument 404 /404.html RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ api.php [L]