migrating users/ from .htaccess to apiwrapper