RewriteEngine On RewriteRule '^v2/' v2.php [END] RewriteRule '^v2$' v2.php [END] RewriteRule . - [END,R=404]