Optimized RewriteRule regex

No need to capture the entire URL if nothing is done with the match afterwards. Just redirect to app.php as quickly as possible.