CMS 12 Kestrel - all pages but homepage return 404

Vote:
 

Im learning CMS 12. I have a new test site. Its running on Kestrel with a custom url (As opposed to local host). In the CMS on page editing, all pages work fine. But on the website, only the home page works. All other pages return a 404. The code never hits the controller.

Im not entirely sure where to even look, but here is my Kestrel config.

"Kestrel": {
      "Endpoints": {
        "Https": {
          "Url": "https://optimizely12.local.myhost.dev:8001",
          "Certificate": {
            "Subject": "local.myhost.dev",
            "Store": "webhosting",
            "Location": "LocalMachine"
          }
        }
      }
    }
public static IHostBuilder CreateHostBuilder(string[] args, bool isDevelopment) =>
            Host.CreateDefaultBuilder(args)
                .ConfigureCmsDefaults()
                .UseSerilog()
                .ConfigureWebHostDefaults(webBuilder =>
                {
                    webBuilder.ConfigureKestrel(serverOptions => serverOptions.AddServerHeader = false);
                    webBuilder.UseStartup<Startup>();
                })
                .ConfigureLogging(logging =>
                {
                    logging.ClearProviders();
                    logging.SetMinimumLevel(LogLevel.Trace);
                });
#277617
Apr 01, 2022 15:42
Vote:
 

This ended up having to do with the url configuration. Not sure which setting exactly. I revereted to default behavior (localhost:8001) and the started working my way back.

#278010
Apr 07, 2022 13:21
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.