updates htaccess file based one a set of rules from category and tag of post related to the attachment