refine htaccess file rewrite rules