-
Notifications
You must be signed in to change notification settings - Fork 3
/
_htaccess
33 lines (26 loc) · 1.18 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
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
# Place holders
RewriteRule ^lqr$ / [R,L]
# Posts
RewriteRule ^(tech|life)/(.*)$ /$2 [R,L]
# Feeds
RewriteCond %{QUERY_STRING} ^cat=3$
RewriteRule ^feed/atom/$ /tech/atom.xml? [R=301,L]
RewriteRule ^feed/atom /atom.xml [R=301,L]
RewriteRule ^tag.*feed /atom.xml [R=301,L]
RewriteRule ^tech/atom /atom.xml [R=301,L]
# Pages
RewriteRule ^(home/){0,1}projects https://github.com/matschaffer [R,L]
RewriteRule ^tag / [R,L]
RewriteRule ^home / [R=301,L]
RewriteRule ^about / [R,L]
RewriteRule ^weddingphotos https://www.flickr.com/photos/schapht/sets/72157602893305806/ [R,L]
RewriteRule ^pictures https://www.flickr.com/photos/schapht/ [R,L]
RewriteRule ^jppictures/Tri https://www.flickr.com/photos/schapht/sets/72157604772199320/ [R,L]
RewriteRule ^jppictures/takayama https://www.flickr.com/photos/schapht/sets/72157604770766829/ [R,L]
RewriteRule ^files/NOK5300.tiff http://erka.kpumuk.info/mac-os-x/isync-and-nokia-5300/ [R,L]
# Files
RewriteRule files/DigitalWorldClock https://cloud.github.com/downloads/matschaffer/digital-world-clock/DigitalWorldClock-1.5.2.zip [R=301,L]
ErrorDocument 404 /404.html