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.
Note: The recommended best practice is to have one of the domains in your CRM. Have the other be a re-direct with your DNS manager (such as GoDaddy, Cloudflare, etc.) so that there are no conflicts occurring. For example, have testsamplewebsite.com as the domain in the CRM and within your DNS manager, set up the www. to redirect to testsamplewebsite.com