Fix Some RewriteEngine (.htaccess) Bugs