forked from telerik/blazor-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredirects.conf
40 lines (36 loc) · 891 Bytes
/
redirects.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
##
# Permanent redirects
##
rewrite ^/blazor-ui/$
/blazor-ui/introduction
permanent;
rewrite ^/blazor-ui/api/$
/blazor-ui/api/index
permanent;
rewrite ^/blazor/(.*)$
/blazor-ui/$1
permanent;
##
# Permanent redirects for moved topics
##
{% for page in site.redirect_pages %}
{% for redirect in page.previous_url %}
rewrite ^/blazor-ui/{{ redirect }}$
/blazor-ui/{{ page.url | remove_first: '/' | replace: '.html', '' }}
permanent;
{% endfor %}
{% endfor %}
##
# Temporary redirects for moved directories
##
{% for directory in site.redirect_directories %}
rewrite ^/blazor-ui/{{ directory.path }}/?$
/blazor-ui/{{ directory.url }}
redirect;
{% endfor %}
##
# Remove HTML extension so all pages only have 1 URL
##
rewrite ^(/blazor-ui/.*)\.html(\?.*)?$
$1$2
permanent;