developit / developit/preact-boilerplate
404 \ Page not found when deploying to Netlify
Open
- Dominant language
- JavaScript
- Stars
- 961
- Forks
- 181
- PR merge metrics
- No merged PRs in 30d
Description
I'm not sure if other static site servers / platforms are all like that, but if we deploy this to Netlify we can only navigate from index.html to other pages using Links, once your refresh or type a URL directly in the address bar we'll get 404
In order to get History push state to work we need to add this re-write rule:
```
/* /index.html 200
```
which can be in a file for Netlify in the repo root.
Can we add this directly? as I can see Netlify support is welcome in the Preact repo.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.