Need to redirect “file not found” errors to home page #7731
Unanswered
gmoskowitzQF
asked this question in
Q&A
Replies: 1 comment
-
This is a web server level setting, it has nothing to do with Material for MkDocs and MkDocs in particular. Tutorials: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using mkdocs to create a documentation web site. The web site is accessed by an application via a Help button – when the user clicks the Help button, a specific topic page opens. Sometimes this topic page will have the wrong file name of will not exist yet. In these cases, the browser displays a “file not found” error. Instead of this error, I want it to display the home page (index.md or index.html). I can’t figure out how to do this. The mkdocs “redirects” plugin hasn’t worked yet; I don’t think it’s designed for what I want to do. Have you encountered this problem before and if so, how did you fix it?
Beta Was this translation helpful? Give feedback.
All reactions