Skip to content

Commit 0803868

Browse files
committed
Adds the right instructions for serving, closes #2980
1 parent fe27d37 commit 0803868

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,9 @@ the configuration to make it work:
144144

145145
```
146146
location / {
147-
try_files $uri $uri/ @rewrite;
148-
}
149-
location @rewrite {
150-
rewrite ^(.+)$ $1.html permanent;
147+
try_files $uri $uri/ $uri.html /404.html;
151148
}
149+
152150
```
153151

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

0 commit comments

Comments
 (0)