Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

version 4.2 - hosting public website & MVC under same domain #3664


User avatar
0
mdonogma created

In 4.3 release the public website and MVC project are now separate vs.net projects.

When deploying - how am I supposed to run under same public domain?

example: public website will be : <a class="postlink" href="http://www.companyname.com">www.companyname.com</a> when users try login it tries to open different port number?

in 4.1 it was not like this? help


4 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    we seperate these two project. So you should publish these two application to different domain. And yes, if users click login, application redirect them to different domain, and after login, redirect back.

  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    we seperate these two project. So you should publish these two application to different domain. And yes, if users click logi, application redirect them to different domain, and after login, redirect back.

  • User Avatar
    0
    mdonogma created

    can they be published in separate subdomains of the primary domain or will only separate primary domains work?

  • User Avatar
    0
    alirizaadiyahsi created

    Both will work. You can set the url addresses for both public and admin websites in appsettings.json.