developit / developit/preact-boilerplate

404 \ Page not found when deploying to Netlify

Open
#101 15 comments 10 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.