Skip to content

Commit 8353804

Browse files
committed
Better document resolution strategy for 404 page
See readthedocs#8089.
1 parent b6e4a7e commit 8353804

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/hosting.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ Custom Not Found (404) Pages
6666
If you want your project to use a custom page for not found pages instead of the "Maze Found" default,
6767
you can put a ``404.html`` at the top level of your project's HTML output.
6868

69-
When a 404 is returned, Read the Docs checks if there is a ``404.html`` in the root of your project's output and uses it if it exists.
69+
When a 404 is returned,
70+
Read the Docs checks if there is a ``404.html`` in the root of your project's output
71+
corresponding to the *current* version
72+
and uses it if it exists.
73+
Otherwise, it tries to fall back to the ``404.html`` page
74+
corresponding to the *default* version of the project.
7075

7176
We recommend the `sphinx-notfound-page`_ extension,
7277
which Read the Docs maintains.

0 commit comments

Comments
 (0)