A domain is the name of a website, and is what comes after the "www." in a web address or after the "@" in an email, for example: testsamplewebsite.com. In your system, if the domain is pointed more than one, such as for general use in your funnels, etc. and also for a membership portal, this can create potential issues.
It is recommended to have a subdomain for something like a membership portal (in this instance we'd recommend using a subdomain like members.yourtestwebsite.com). Here's how to set up a subdomain:
Step 1: Within the Membership section, under Settings > Domains, connect the non-www (such as yourtestwebsite.com) with the www. version:
Step 2: In the Membership Settings for Custom URL, use the subdomain instead of the main website URL.