-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why use 404.html instead of index.html #7
Comments
Of course, It's works. If it is a multi level directory, it will not work. Such as If the server can't find the file, it will fallback to |
So, why not use index.html.... |
GitHub Pages not support history api fallback. But the url can not be found, the |
还是用中文吧... 我知道用 比如我有个项目 |
HI ! Man DIYgod is FuTa |
index.html 可行,如果你只有一个文档的话。但是多个文档文件就没办法了,比如说我有这样的结构
其中 |
奇巧淫技,学到了! |
至于你说的 SEO,因为内容是动态生成的,似乎没办法做到 😅 |
只是感觉一直返回的是404不太友好... 但这样的好处也很明显... |
好的 我会在文档里提一下,如果只是单页文档就直接用 index.html |
Since it's always SEO-unfriendly, I think hash routing is fine for both cases (multi-pages and using index.html), maybe add an option for using hash routing? |
I don't really understand what kind of workflow is supposed to come out of this. If I call my file |
@citycide |
@citycide by the way, you can use |
@QingWei-Li nicely done, I'm glad I wasn't doing anything glaringly wrong! @egoist thanks for that tip also. |
I try rename 404.html to index.html, it works well, see: http://dplayer.js.org/docs/
Using 404 has two defect:
The text was updated successfully, but these errors were encountered: