From c69c8bfa7d7e1a70a15c3af85a0ad7a10588662e Mon Sep 17 00:00:00 2001 From: Thomas Delteil Date: Fri, 27 Sep 2019 14:41:03 +1000 Subject: [PATCH] redirect to the 404 page (#16287) * redirect to the 404 so that people are at least on the website * improve 404 documentation * nudge ci --- docs/static_site/src/.htaccess | 4 ++++ docs/static_site/src/404.html | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/static_site/src/.htaccess b/docs/static_site/src/.htaccess index 16420306f1e1..b5de581b80b2 100644 --- a/docs/static_site/src/.htaccess +++ b/docs/static_site/src/.htaccess @@ -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 diff --git a/docs/static_site/src/404.html b/docs/static_site/src/404.html index c472b4ea0a78..ed01bd7bab45 100644 --- a/docs/static_site/src/404.html +++ b/docs/static_site/src/404.html @@ -19,6 +19,12 @@

404

-

Page not found :(

-

The requested page could not be found.

+

Page not found :'(

+ +

Due to a recent redesign of the website, some items have moved + We're working towards adding redirects. Useful links:

+
+
  • Python Tutorials
  • +
  • Python API Documentation
  • +