-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add static 404 page and robots.txt definition
The self-contained 404 page serves a dual purpose of being displayed when a true 404 is triggered, and when someone visits the tiler root. A robots.txt file was also added to prevent web crawlers from interacting with PNG and grid JSON URLs.
- Loading branch information
Hector Castro
committed
Jan 26, 2016
1 parent
a11b684
commit 41558f2
Showing
8 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>OpenTreeMap</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<link rel="icon" type="image/png" href="/favicon.png" /> | ||
<link href="/static/css/vendor.min.css" rel="stylesheet"> | ||
<link href="/static/css/main.min.css" rel="stylesheet"> | ||
<!--[if lt IE 9]> | ||
<script src="/static/js/html5shiv.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<!-- Top Nav --> | ||
<div class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="navbar-collapse" id="otm-navbar-collapse"> | ||
<ul class="pull-left nav navbar-nav navbar-left"></ul> | ||
<ul class="pull-right nav navbar-nav navbar-right"></ul> | ||
</div> | ||
</div> | ||
<div class="header"> | ||
<div class="logo hidden-xs"> | ||
<a href="/"><img id="site-logo" src="/static/img/logo.png" alt="OpenTreeMap"></a> | ||
</div> | ||
<div class="toolbar-wrapper"> | ||
</div> | ||
<div class="search-wrapper"> | ||
</div> | ||
</div> | ||
<div class="content"> | ||
<div class="well error-panel"> | ||
<div class="error-icon error-icon-img"><img src="/static/img/404.png"></div> | ||
<h2>No trees here!</h2> | ||
<p>Sorry, we couldn't find the page you requested. You're welcome to <a href="mailto:opentreemap@azavea.com">contact support</a> if you believe you reached this page in error.</p> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
User-agent: * | ||
Disallow: / |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.