Skip to content

Commit

Permalink
redirect to the 404 page (apache#16287)
Browse files Browse the repository at this point in the history
* redirect to the 404 so that people are at least on the website

* improve 404 documentation

* nudge ci
  • Loading branch information
ThomasDelteil authored and larroy committed Sep 28, 2019
1 parent 266f13c commit 3a5158c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/static_site/src/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ RewriteCond %{REQUEST_URI} !\/$
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.html -f
RewriteRule ^(.*) $1/index.html [NC,L]


# 404
ErrorDocument 404 /404.html
10 changes: 8 additions & 2 deletions docs/static_site/src/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
<p><strong>Page not found :'(</strong></p>

<p><b>Due to a recent redesign of the website, some items have moved</b>
We're working towards adding redirects. Useful links:</p>
<div style="background-color:white;">
<li><a href="/api/python/docs/tutorials/">Python Tutorials</a></li>
<li><a href="/api/python/docs/api/">Python API Documentation</a></li>
</div>
</div>

0 comments on commit 3a5158c

Please sign in to comment.