-2

Does anyone know how can I disable to see cshtml files, e.g /Views/anything.cshtml? I got 404, The resource cannot be found error message. I use Umbraco 7.

Philippe Signoret
  • 13,299
  • 1
  • 40
  • 58
levipadre
  • 569
  • 7
  • 31

1 Answers1

0

Not sure what you need. But you can omit specific URLs by defining it in the web.config:

<add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd,~/log.aspx,/Views/anything.cshtml" />
  • Sorry, probably it wasn't clear. What I meant, the site is working, but when I type something like this `/Views/Master.cshtml` or `/Views/blabla.cshtml`, I got an error message: `Server Error in '/' Application.The resource cannot be found. Description: HTTP 404....` I would like to hide it. – levipadre May 10 '15 at 00:03