if you are facing a situation where your .htaccess file is automatically getting reset to wordpress default htaccess code than there can be few reasons behind that.