# Back-office is working, but all front-end pages are returning 'Page Not Found'

**URL:** <https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773>\
**Category:** Questions\
**Tags:** v13\
**Created:** [September 10, 2025, 4:23pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773 "2025-09-10T16:23:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![grejen42](https://forum.umbraco.com/user_avatar/forum.umbraco.com/grejen42/32/3340_2.png) [@grejen42](https://forum.umbraco.com/u/grejen42)\
**Post date:** [September 10, 2025, 4:23pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/1 "2025-09-10T16:23:21Z")

</div>

Recently launch new U13 site to IIS. After a couple weeks of various Error 500 issues, followed by ‘Boot Failed’ errors, I finally got a generic ‘Page Not Found’, however I **am able to login** and see everything in the back-office. But I can’t figure out why the front won’t load, and I’m not sure where else to look. I just ran a fresh build and clean ‘Publish’. Trace logs only show “_No physical template file was found for template {Template}…_“, but I don’t know why this is happening. Anyone have some ideas what I can check next?

---

<div class="post-metadata">

**Author:** ![ravimotha](https://forum.umbraco.com/user_avatar/forum.umbraco.com/ravimotha/32/6216_2.png) [@ravimotha](https://forum.umbraco.com/u/ravimotha)\
**Post date:** [September 10, 2025, 4:42pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/2 "2025-09-10T16:42:37Z")

</div>

Hi Greg,  
welcome to the orum and sorry that you are having issues

have you tried spinning up a vanilla sit from scratch to make sure that your process is working?

Are the templates being copied across.. maybe they need to be redeployed ..If youare able to login, it shows IIS is running..

also check in the settings section in the back office to se if you can se the file contents in the template folders  
is it for specific pages ? or for all pages  
also check your folder an iusr permisions .. always worth checking

---

<div class="post-metadata">

**Author:** ![grejen42](https://forum.umbraco.com/user_avatar/forum.umbraco.com/grejen42/32/3340_2.png) [@grejen42](https://forum.umbraco.com/u/grejen42)\
**Post date:** [September 10, 2025, 6:40pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/3 "2025-09-10T18:40:32Z")

</div>

Spun up a new U13 w/template, published it and it worked perfectly, so definitely something with my site. To answer your questions, though - yes, all the template files uploaded as expected, and all permissions are set correctly. All pages are failing - not just the home page. Several Google searches seem to indicate I have a routing problem somewhere, but I’m not sure where. I’ll compare my files to the newly spun-up version that worked and see what turns up, but if anyone has any other ideas, I’d love to hear them. Thx

---

<div class="post-metadata">

**Author:** ![Saeve](https://forum.umbraco.com/user_avatar/forum.umbraco.com/saeve/32/405_2.png) [@Saeve](https://forum.umbraco.com/u/Saeve)\
**Post date:** [September 10, 2025, 6:44pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/4 "2025-09-10T18:44:50Z")

</div>

Hi and welcome Greg 🙂

There’s a few potential causes for this.

Looking out your post, I would personally start by looking at these two:

1. Is the Culture and Hostname set on the wrong item

 ![image](https://forum.umbraco.com/uploads/default/original/2X/0/081e5016aa5c12ff10984c284f5c270264446a21.jpeg)

1. Does your Document Types have a template attached and can you view it in the backoffice

 ![image](https://forum.umbraco.com/uploads/default/original/2X/b/b7b36fd34521fb64c7a0f8ffece4a07a95245fbb.jpeg)

---

<div class="post-metadata">

**Author:** ![grejen42](https://forum.umbraco.com/user_avatar/forum.umbraco.com/grejen42/32/3340_2.png) [@grejen42](https://forum.umbraco.com/u/grejen42)\
**Post date:** [September 10, 2025, 8:09pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/5 "2025-09-10T20:09:39Z")

</div>

No Culture and Hostname conflicts that I can see, and the Doc Types have their templates.

 ![image](https://forum.umbraco.com/uploads/default/original/2X/9/946bf1db6177234e335aefb1e50a17b3c9669d9a.png)

---

<div class="post-metadata">

**Author:** ![Saeve](https://forum.umbraco.com/user_avatar/forum.umbraco.com/saeve/32/405_2.png) [@Saeve](https://forum.umbraco.com/u/Saeve)\
**Post date:** [September 10, 2025, 8:11pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/6 "2025-09-10T20:11:27Z")

</div>

Cool!

Can you also try and click on the “Open” link for the template?

I would like to confirm that your application can actually read the file content.

---

<div class="post-metadata">

**Author:** ![grejen42](https://forum.umbraco.com/user_avatar/forum.umbraco.com/grejen42/32/3340_2.png) [@grejen42](https://forum.umbraco.com/u/grejen42)\
**Post date:** [September 10, 2025, 8:24pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/7 "2025-09-10T20:24:09Z")

</div>

It does. It says it’s ‘not editable when using runtime mode: Production’, but it does open the template.

---

<div class="post-metadata">

**Author:** ![ravimotha](https://forum.umbraco.com/user_avatar/forum.umbraco.com/ravimotha/32/6216_2.png) [@ravimotha](https://forum.umbraco.com/u/ravimotha)\
**Post date:** [September 10, 2025, 10:57pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/8 "2025-09-10T22:57:20Z")

</div>

So a couple of things.. now we have started to get some more information..

Let’s make sure we are switching on and getting logs ..

You can then add code to log and see if you can find issue..

My instinct would be to add pages and functionality step wise to see where it is breaking..

simple home page template ..

Interrogate your logs to see if it’s a common function .. or an issue with routing..

> **[Logging | Umbraco CMS](https://docs.umbraco.com/umbraco-cms/fundamentals/code/debugging/logging)**

---

<div class="post-metadata">

**Author:** ![ravimotha](https://forum.umbraco.com/user_avatar/forum.umbraco.com/ravimotha/32/6216_2.png) [@ravimotha](https://forum.umbraco.com/u/ravimotha)\
**Post date:** [September 10, 2025, 10:59pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/9 "2025-09-10T22:59:48Z")

</div>

Also are the references for the production site set.. ie it’s not got some weird config which is an internal server and that is causing a failure..

So rip your code out the home page and make the page and template dumb.. see if that works , and then add stuff and complexity back in.. my old boss taught me a great phrase if in doubt take it out ..

---

<div class="post-metadata">

**Author:** ![Rockerby](https://forum.umbraco.com/user_avatar/forum.umbraco.com/rockerby/32/123_2.png) [@Rockerby](https://forum.umbraco.com/u/Rockerby)\
**Post date:** [September 11, 2025, 6:46am UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/10 "2025-09-11T06:46:45Z")

</div>

Hello @greg!

When turning on production mode, make sure you follow all the steps in [the docs](https://docs.umbraco.com/umbraco-cms/13.latest/fundamentals/setup/server-setup/runtime-modes) - **especially** this bit:

* * *

You can remove the following properties from your `csproj` project file to enable the compilation of Razor views (which also ensures your views do not contain compilation errors and is a prerequisite for enabling `Production` mode):

```auto
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>

```

---

<div class="post-metadata">

**Author:** ![grejen42](https://forum.umbraco.com/user_avatar/forum.umbraco.com/grejen42/32/3340_2.png) [@grejen42](https://forum.umbraco.com/u/grejen42)\
**Post date:** [September 12, 2025, 3:01pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/11 "2025-09-12T15:01:54Z")

</div>

Thank you Richard! - this is what I missed. Removing those triggered a few other small issues, but ultimately I was able to get the site running. Marking as the solution. Thanks again.

---

<div class="post-metadata">

**Author:** ![system](https://forum.umbraco.com/uploads/default/original/1X/624adeddd330a3d0268a184db47946ca7e82c676.png) [@system](https://forum.umbraco.com/u/system)\
**Post date:** [October 12, 2025, 3:02pm UTC](https://forum.umbraco.com/t/back-office-is-working-but-all-front-end-pages-are-returning-page-not-found/5773/12 "2025-10-12T15:02:03Z")

</div>

Closed on October 12, 2025, 3:02pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
