init htaccess function