Base solution for your next web application
Open Closed

Need Tenant Name in URL or brief about sub domain resolver. #7957


User avatar
0
xitix created

how do I include tenant name in URL so that user should not know about Tenant Things and he simply enter URL for appropriate tenant?

You are intelligent to understand what I mean for user perspective If I have different client for same portal.

I refered this question aswer : #7511 it gives me some hint but not brief , kindly give me steps for making subdomain resolver.


2 Answer(s)
  • User Avatar
    0
    musa.demir created

    Its already implemented. Change WebSiteRootAddress in appsettings.json as seen below.

    "WebSiteRootAddress": "http://{TENANCY_NAME}.mydomain.com/"
    

    And bind all subdomains (*.mydomain.com) to zero on IIS. See : https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Overview-Core#multi-tenancy

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.