-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
28 lines (22 loc) · 887 Bytes
/
.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
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Redirect to HTTPS
RewriteCond %{http:X-FORWARDED-PROTO} !https
RewriteCond %{HTTP_HOST} ^2019\.nejsconf\.com$ [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]
# End
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.zgz -f
RewriteRule ^(.*)$ $1.zgz [L]
<FilesMatch "zgz$">
Header set Content-Encoding gzip
</FilesMatch>
RedirectMatch 301 ^/cfp$ https://www.papercall.io/nejsconf-2019
RedirectMatch 301 ^/cfp/$ https://www.papercall.io/nejsconf-2019
RedirectMatch 301 ^/2015/(.*)$ https://2015.nejsconf.com/2015/$1
RedirectMatch 301 ^/2016/(.*)$ https://2016.nejsconf.com/2016/$1
RedirectMatch 301 ^/2017/(.*)$ https://2017.nejsconf.com/2017/$1
RedirectMatch 301 ^/2018/(.*)$ https://2018.nejsconf.com/2018/$1
RedirectMatch 301 ^/code-of-conduct/?$ https://2019.nejsconf.com/coc/
</IfModule>