From 5df90721b3ec232a0878767ee8772a1e3bb5c5d7 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Tue, 18 Mar 2014 22:12:29 -0700 Subject: [PATCH] prevent directory listing of /posts --- public/.htaccess | 6 +++--- public/posts/index.html | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 public/posts/index.html diff --git a/public/.htaccess b/public/.htaccess index 3054105..8e520c3 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -29,13 +29,13 @@ RewriteRule ^posts/([0-9][0-9][0-9][0-9])/([0-9][0-9])/[0-9]/(.*)$ /posts/$1/$2/ RewriteRule ^posts/([0-9][0-9][0-9][0-9])/([0-9][0-9])/[0-9][0-9]/(.*)$ /posts/$1/$2/$3 [R=301] # Never ended up running with this, give it back. -Redirect 301 /json-diff/ http://tlrobinson.net/projects/javascript-fun/jsondiff/ +Redirect 301 /json-diff http://tlrobinson.net/projects/javascript-fun/jsondiff # The great vowel shortage of 1974 is over. -Redirect 301 /proj/ /projects/ +Redirect 301 /proj /projects Redirect 301 /blog/sjs.rss /feed.xml -Redirect 301 /blog/ /posts/ +Redirect 301 /blog /posts # Old naming scheme, incompatible with Harp. Redirect 301 /blog/2006.02.08-first-post /posts/2006/02/first-post diff --git a/public/posts/index.html b/public/posts/index.html new file mode 100644 index 0000000..c777d67 --- /dev/null +++ b/public/posts/index.html @@ -0,0 +1,12 @@ + + + + + + samhuri.net + + + +

samhuri.net

+ +