Setup htaccess for api calls