Skip to content

Commit 203db2e

Browse files
chore(infrastructure): fix redirect issues
1 parent a68df3e commit 203db2e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

redirects.conf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
rewrite ^/blazor-ui/$
55
/blazor-ui/introduction
66
permanent;
7-
8-
rewrite ^/blazor-ui/knowledge-base$
9-
/blazor-ui/knowledge-base.html
10-
permanent;
117

128
rewrite ^/blazor-ui/api/$
13-
/blazor-ui/api/index.html
9+
/blazor-ui/api/index
1410
permanent;
1511

1612
rewrite ^/blazor/(.*)$
@@ -35,3 +31,10 @@ rewrite ^/blazor-ui/{{ directory.path }}/?$
3531
/blazor-ui/{{ directory.url }}
3632
redirect;
3733
{% endfor %}
34+
35+
##
36+
# Remove HTML extension so all pages only have 1 URL
37+
##
38+
rewrite ^(/.*)\.html(\?.*)?$
39+
$1$2
40+
permanent;

0 commit comments

Comments
 (0)