Skip to content
Browse files =

  • Loading branch information...
1 parent 3243733 commit 93680e319b92090e2526890b64bf6cf5e5a0ef5d @kenmickles committed
Showing with 15 additions and 10 deletions.
  1. +14 −10 .htaccess
  2. +1 −0  tasks/deploy
24 .htaccess
@@ -1,30 +1,34 @@
RewriteEngine On
+# redirect to the unh section
+RewriteCond %{HTTP_HOST} unclenagyshouse\.com$ [NC]
+RewriteRule .? [R=301,L]
# force use of instead of www
RewriteCond %{HTTP_HOST} !^(spoonfullofpoo\.local:8080|spoonfullofpoo\.com)$ [NC]
-RewriteRule .?{REQUEST_URI} [R,L]
+RewriteRule .?{REQUEST_URI} [R=301,L]
# thumnails = podcast images
RewriteRule ^images\/episodes\/podcast\/(.*) /images/episodes\/thumbnails/$1 [L]
-RewriteRule ^nagy($|\/$) /unh/ [R,L]
+RewriteRule ^nagy($|\/$) /unh/ [R=301,L]
# old images, presumably linked on myspace somewhere
-RewriteRule ^myspace\/img\/(.*) /images/myspace/$1 [R,L]
-RewriteRule ^images\/journal\/(.*) /images/myspace/$1 [R,L]
-RewriteRule ^img\/nagy\/myspace\/(.*) /images/myspace/$1 [R,L]
+RewriteRule ^myspace\/img\/(.*) /images/myspace/$1 [R=301,L]
+RewriteRule ^images\/journal\/(.*) /images/myspace/$1 [R=301,L]
+RewriteRule ^img\/nagy\/myspace\/(.*) /images/myspace/$1 [R=301,L]
# old download links
-RewriteRule ^dl\/(.*)$1 [R,L]
+RewriteRule ^dl\/(.*)$1 [R=301,L]
# misc. projects
-RewriteRule ^kaplan$ [R,L]
-RewriteRule ^obsessor($|\/$) [R,L]
+RewriteRule ^kaplan$ [R=301,L]
+RewriteRule ^obsessor($|\/$) [R=301,L]
# unh episodes
-RewriteRule ^unh(1|2|3|4|4.5|5|6)$ /unh/1.0$1 [R,L]
-RewriteRule ^unh(\d)(\d{2}) /unh/$1.$2 [R,L]
+RewriteRule ^unh(1|2|3|4|4.5|5|6)$ /unh/1.0$1 [R=301,L]
+RewriteRule ^unh(\d)(\d{2}) /unh/$1.$2 [R=301,L]
# shortcuts
RewriteRule ^rss$ /feed [R,L]
1  tasks/deploy
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
jekyll && rsync -avz --delete _site/ ken@37i:~/www/
+scp .htaccess ken@37i:~/www/

0 comments on commit 93680e3

Please sign in to comment.
Something went wrong with that request. Please try again.