Base solution for your next web application
Open Closed

Why is there a service Public website? #7947


User avatar
0
tinytownsoftware created

Because there are two websites, I have to pay double the price on Azure. Additionally, I have to worry about DNS subdomains. I going to try to merge the two, but I was curious about why it was implemented this way?


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    I think more is to split the function. Of course you can try to merge them.

  • User Avatar
    0
    tinytownsoftware created

    One thing I am noticing is that if the user is not logged in, it always redirects to the login page. This will not work if I want to merge the public website, because I still want users who are not logged in to see the Home page. How do I disable the automatic redirection to the login page?

  • User Avatar
    0
    maliming created
    Support Team

    You can modify the logic of HomeController as needed.

    https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Controllers/HomeController.cs#L48

  • User Avatar
    0
    tinytownsoftware created

    Thank you!