removes extra parts of .htaccess