Skip to content

When I set routerMode: 'history', how do I access the subpages directly #1858

Closed Answered by trusktr
rakuyoMo asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, it isn't related to Docsify, but with any static site that does not use hash routing, you'll have to configure your server to send the same HTML (as for the root / path) for any path. Your server currently responds with a 404 instead of sending back the index.html.

Here's where to start on that with Nginx:

https://www.google.com/search?q=nginx+redirect+all+paths+to+index.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rakuyoMo
Comment options

Answer selected by rakuyoMo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants