Skip to content

Commit

Permalink
Adds the right instructions for serving, closes #2980
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Aug 27, 2019
1 parent fe27d37 commit 0803868
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -144,11 +144,9 @@ the configuration to make it work:

```
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^(.+)$ $1.html permanent;
try_files $uri $uri/ $uri.html /404.html;
}
```

This will rewrite the URLs for you. Equivalent configuration might have to be
Expand Down

0 comments on commit 0803868

Please sign in to comment.