add htaccess again, fix location not resetting, set ispublic false by default