fix htaccess rewrites and link for api-key