Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
redirect to the 404 page (#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 aaronmarkham committed Sep 27, 2019
1 parent c5007ea commit c69c8bf
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 c69c8bf

Please sign in to comment.