mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
prevent directory listing of /posts
This commit is contained in:
parent
8db90d67d2
commit
5df90721b3
2 changed files with 15 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
12
public/posts/index.html
Normal file
12
public/posts/index.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="refresh" content="0; url=/">
|
||||
<title>samhuri.net</title>
|
||||
<script>window.location = '/'</script>
|
||||
</head>
|
||||
<body>
|
||||
<p align="center"><a href="/">samhuri.net</a></p>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue