Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

CMS 12 Kestrel - all pages but homepage return 404


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": "",
          "Certificate": {
            "Subject": "",
            "Store": "webhosting",
            "Location": "LocalMachine"
public static IHostBuilder CreateHostBuilder(string[] args, bool isDevelopment) =>
                .ConfigureWebHostDefaults(webBuilder =>
                    webBuilder.ConfigureKestrel(serverOptions => serverOptions.AddServerHeader = false);
                .ConfigureLogging(logging =>
Apr 01, 2022 15:42

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.

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.