Fixed rewrite rules for patching .htaccess