Rewriting .htaccess like a boss