Refactoring of .htaccess