-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.htaccess
More file actions
22 lines (13 loc) · 682 Bytes
/
.htaccess
File metadata and controls
22 lines (13 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
AddDefaultCharset UTF-8
AddCharset UTF-8 .html
AddCharset UTF-8 .xml
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^jillesvangurp\.com$ [NC]
RewriteRule ^(.*)$ https://www.jillesvangurp.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^blog\.jillesvangurp\.com$ [NC]
RewriteRule ^(.*)$ https://www.jillesvangurp.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^publications\.jillesvangurp\.com$ [NC]
RewriteRule ^(.*)$ https://www.jillesvangurp.com/work/publications [R=301,L]
RewriteRule ^.+/([0-9]+)/([0-9]+)/([0-9]+)/([^/]+?)/?$ https://www.jillesvangurp.com/blog/$1-$2-$3-$4.html [R,L]