Skip to content

Instantly share code, notes, and snippets.

@jordanrobinson
Last active June 4, 2017 12:45
Show Gist options
  • Save jordanrobinson/b05566968a33d0f8d47f77755c5270d0 to your computer and use it in GitHub Desktop.
Save jordanrobinson/b05566968a33d0f8d47f77755c5270d0 to your computer and use it in GitHub Desktop.
sitecore-404
<%@ outputcache location="None" varybyparam="none" %>
<%@ page language="c#" enableviewstate="false" autoeventwireup="True" inherits="SitecoreClient.Page.NotFound" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="robots" content="noindex, nofollow" />
<title>Error</title>
</head>
<body>
<main class="main" id="main" role="main">
<section>
<div class="error-message">
<h1>There seems to be a problem</h1>
<p>
<strong>Error 404.</strong>
Sorry, we couldn't find what you were looking for. Go back to the <a href="/">homepage</a>.
</p>
</div>
</section>
</main>
<div class="sc-task" style="display: none">
<section class="sc-applicationContent">
<div class="col-md-12 sc-applicationContent-main">
<ul>
<li id="PageEditor" runat="server">
</li>
</ul>
</div>
</section>
</div>
<div style="display: none">
<asp:placeholder id="RequestedUrl" runat="server" />
<asp:placeholder id="UserName" runat="server" />
<asp:placeholder id="SiteName" runat="server" />
</div>
</body>
</html>
<setting name="ItemNotFoundUrl" value="/404.aspx" />
<setting name="LayoutNotFoundUrl" value="/404.aspx" />
<httpErrors errorMode="Custom" existingResponse="Auto">
<remove statusCode="500" subStatusCode="-1" />
<error statusCode="500" path="/500.htm" responseMode="File"/>
</httpErrors>
<customErrors mode="RemoteOnly" defaultRedirect="~/500.htm" redirectMode="ResponseRewrite" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment