Skip to content

Commit de65778

Browse files
authored
Merge pull request #875 from DuendeSoftware/mb/redir
TEMP - Always include trailing slash
2 parents 4665657 + 1f9fdbf commit de65778

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

deployment/default.conf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ server {
2222

2323
expires $expires;
2424

25+
if (!-f $request_filename) {
26+
# Remove trailing slash
27+
#rewrite ^(.+)/+$ $1 permanent;
28+
29+
# Add trailing slash
30+
rewrite ^([^.]*[^/])$ https://docs.duendesoftware.com$1/ permanent;
31+
}
32+
2533
location / {
2634
root /usr/share/nginx/html;
2735
index index.html index.htm;
28-
add_header X-REVISION $APPLICATION_VERSION;
36+
#add_header X-REVISION $APPLICATION_VERSION;
2937
}
3038

3139
include /etc/nginx/extra/*.conf;

0 commit comments

Comments
 (0)