diff --git a/README.md b/README.md index d17c1d5..d5bb1f2 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,8 @@ However, you can also restrict it to certain paths: If you want your visitors to receive a response under a certain path, but actually serve a completely different one behind the curtains, this option is what you need. +Rewrites will only be applied if no file with the requested path was found. + It's perfect for [single page applications](https://en.wikipedia.org/wiki/Single-page_application) (SPAs), for example: ```json @@ -124,6 +126,16 @@ It's perfect for [single page applications](https://en.wikipedia.org/wiki/Single } ``` +Or simply: + +```json +{ + "rewrites": [ + { "source": "**", "destination": "/index.html" } + ] +} +``` + You can also use so-called "routing segments" as follows: ```json