php_flag display_errors on Options -Indexes RewriteEngine On RewriteRule ^api/(.*)?$ index.php?api=$1&$2 [L,QSA]