-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
63 lines (50 loc) · 2.17 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
RewriteOptions Inherit
# Quite effective spam protection
RewriteRule contact mailto:[email protected] [R=301,L,QSA]
# Live at {du}punkto or Obliviously now
Redirect 301 /rss https://dupunkto.org/rss
Redirect 301 /now https://obliviously.eu/now
Redirect 301 /blogroll https://obliviously.eu/blogroll
# These now have their own domain
Redirect 301 /netmap https://nm.geheimesite.nl
Redirect 301 /the-archives https://classic.geheimesite.nl
# Actually, use my Obliviously pf instead.
Redirect 302 /me.jpeg https://obliviously.eu/uploads/48e6a52868e7d0bcae77aa5b853ed807.jpg
# Moved to CDN
Redirect 302 /base.css https://cdn.geheimesite.nl/punkt.css
Redirect 302 /logo2.png https://cdn.geheimesite.nl/images/logo2.png
Redirect 302 /button.jpeg https://cdn.geheimesite.nl/images/button.jpeg
# Moved to FTP
Redirect 302 /conlangs.pdf https://ftp.dupunkto.org/~axcelott/conlangs.pdf
Redirect 302 /cryptobros.pdf https://ftp.dupunkto.org/~axcelott/cryptobros.pdf
# Redirect feeds to Obliviously
# Notice the 302. I'd like to have the option to change this in the future.
#Redirect 302 /index.xml https://obliviously.eu/rss.xml
#Redirect 302 /atom.xml https://obliviously.eu/atom.xml
#Redirect 302 /feed.json https://obliviously.eu/feed.json
# Cover for common paths
Redirect 302 /.well-known/security.txt /security.txt
# Cool URLs don't change
Redirect 301 /index-en.xml /index.xml
Redirect 301 /index-nl.xml /index.xml
Redirect 301 /random.jpeg /me.jpeg
RewriteRule images/button.png /button.jpeg [R=301,L]
RewriteRule images/me.jpeg /me.jpeg [R=301,L]
RewriteRule images/profile.JPG /me.jpeg [R=301,L]
RewriteRule ^images/(.*)$ https://cdn.geheimesite.nl/images/$1 [R=301]
# Old language-based URLs
Redirect 302 /en/about /
Redirect 301 /en/colophon /colophon
Redirect 301 /en/privacy /privacy
Redirect 301 /en/follow /follow
# Redirect Dutch -> English
Redirect 302 /over-mij /
Redirect 301 /colofon /colophon
Redirect 301 /volg-me /follow
# I am an idiot and keep moving things around
Redirect 302 /about /
Redirect 301 /webdesign /projects
# Allow redirects from / for blog posts.
RewriteCond %{DOCUMENT_ROOT}/$1.html !-f
RewriteCond %{DOCUMENT_ROOT}/blog/$1.html -f
RewriteRule ^(.+)$ /blog/$1.html [R=301,L]