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

Commit c69c8bf

Browse files
ThomasDelteilaaronmarkham
authored andcommitted
redirect to the 404 page (#16287)
* redirect to the 404 so that people are at least on the website * improve 404 documentation * nudge ci
1 parent c5007ea commit c69c8bf

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/static_site/src/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ RewriteCond %{REQUEST_URI} !\/$
2222
RewriteCond %{REQUEST_FILENAME} -d
2323
RewriteCond %{REQUEST_FILENAME}/index.html -f
2424
RewriteRule ^(.*) $1/index.html [NC,L]
25+
26+
27+
# 404
28+
ErrorDocument 404 /404.html

docs/static_site/src/404.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
<div class="container">
2020
<h1>404</h1>
2121

22-
<p><strong>Page not found :(</strong></p>
23-
<p>The requested page could not be found.</p>
22+
<p><strong>Page not found :'(</strong></p>
23+
24+
<p><b>Due to a recent redesign of the website, some items have moved</b>
25+
We're working towards adding redirects. Useful links:</p>
26+
<div style="background-color:white;">
27+
<li><a href="/api/python/docs/tutorials/">Python Tutorials</a></li>
28+
<li><a href="/api/python/docs/api/">Python API Documentation</a></li>
29+
</div>
2430
</div>

0 commit comments

Comments
 (0)