Skip to content

Commit

Permalink
Custom 500 page and links to home page on error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rouanw committed Dec 23, 2013
1 parent 2ef95cd commit e291cfa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions BookWorm/BookWorm.csproj
Expand Up @@ -348,6 +348,7 @@
<None Include="Scripts\jquery-1.7.1.intellisense.js" />
<Content Include="Images\logo.png" />
<Content Include="Images\wmd-buttons.png" />
<Content Include="InternalError.html" />
<Content Include="NotFound.html" />
<Content Include="robots.txt" />
<Content Include="Scripts\bootstrap.js" />
Expand Down
10 changes: 10 additions & 0 deletions BookWorm/InternalError.html
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PUKU | 500 Internal Error</title>
</head>
<body>
<h1>We're sorry, but something went wrong.</h1>
<p>Try returning to the <a href="/">home page.</a></p>
</body>
</html>
4 changes: 2 additions & 2 deletions BookWorm/NotFound.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PUKU | Page Not Found</title>
<title>PUKU | 404 Page Not Found</title>
</head>
<body>
<h1>The page you were looking for could not be found</h1>

<p>You may have mistyped the address or the page may have moved.</p>

<p>Try returning to the home page.</p>
<p>Try returning to the <a href="/">home page.</a></p>
</body>
</html>
1 change: 1 addition & 0 deletions BookWorm/Web.config
Expand Up @@ -25,6 +25,7 @@
<system.web>
<customErrors mode="RemoteOnly">
<error statusCode="404" redirect="/NotFound.html" />
<error statusCode="500" redirect="/InternalError.html" />
</customErrors>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
Expand Down

0 comments on commit e291cfa

Please sign in to comment.