-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
37 lines (34 loc) · 1.25 KB
/
.htaccess
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
---
permalink: .htaccess
---
RewriteEngine On
#RewriteBase /
{% for event in site.data.publications %}
{% for section_hash in event %}
{% for section in section_hash %}
{% if section.id != null %}
{% if section.pdf != null %}
RewriteRule ^doc{{ event[0] }}{{ section.id }} {{ site.url }}{{ section.pdf }} [R=301,L]
{% endif %}
{% if section.presentation != null %}
RewriteRule ^pre{{ event[0] }}{{ section.id }} {{ site.url }}{{ section.presentation }} [R=301,L]
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% for event in site.data.talks %}
{% for section_list in event %}
{% assign section_hash = section_list[0] %}
{% for section in section_hash %}
{% if section.id != null %}
{% if section.pdf != null %}
RewriteRule ^doc{{ event[0] }}{{ section.id }} {{ site.url }}{{ section.pdf }} [R=301,L]
{% endif %}
{% if section.presentation != null %}
RewriteRule ^pre{{ event[0] }}{{ section.id }} {{ site.url }}{{ section.presentation }} [R=301,L]
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}