Skip to content

Instantly share code, notes, and snippets.

@mniak
Last active November 1, 2018 19:51
Show Gist options
  • Save mniak/e2565bd90c8c8364a7c77cafc7643e98 to your computer and use it in GitHub Desktop.
Save mniak/e2565bd90c8c8364a7c77cafc7643e98 to your computer and use it in GitHub Desktop.
<!doctype html>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://gist.githubusercontent.com/mniak/e2565bd90c8c8364a7c77cafc7643e98/raw/style.css"/>
<title>404 Not Found</title>
<article>
<h1>404 <span>Not Found</span></h1>
<p>A página solicitada não foi encontrada</p>
<a href="http://iatec.com/"><img src="https://gist.githubusercontent.com/mniak/e2565bd90c8c8364a7c77cafc7643e98/raw/iatec.png" alt="&ndash; IATec"/></a>
<p id="d"/>
<script src="https://gist.githubusercontent.com/mniak/e2565bd90c8c8364a7c77cafc7643e98/raw/script.js"></script>
document.getElementById("d").textContent="Endereço: "+ location;
body {
text-align: center;
font-family: 'Futura', 'Segoe UI Light', 'Arial Narrow';
font-size: 24pt;
font-weight: 100;
font-style: italic;
color: #4867AE;
background: #EFFFFF;
}
h1 {
font-size: 36pt;
color: #1D4873;
}
img {
color: #1D4873;
}
article {
text-align: left;
margin: 0 auto;
}
img {
float: right;
margin-left: 20px;
}
#d {
font-family: 'Arial', 'Tahoma', 'Verdana', sans-serif;
font-size: 14pt;
font-style: normal;
word-break: break-all;
color: #949494;
}
@media(max-width: 800px) {
body {
padding: 0 20px;
}
article {
width: auto;
}
span {
white-space: nowrap;
}
}
@media(min-width: 800px) {
body {
padding: 100px 20%;
}
article {
max-width: 800px;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" path="index.html" responseMode="File" />
</httpErrors>
<rewrite>
<rules>
<rule name="Rewrite all files to 404" enabled="false" patternSyntax="ECMAScript">
<match url="^[^?]*\.(css|js|png)" negate="true" />
<action type="Rewrite" url="x" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment