[tor-commits] [webwml/master] Attempt to get rid of visible directory indices

sebastian at torproject.org sebastian at torproject.org
Mon Jun 27 22:12:39 UTC 2016


commit 94454cc9023e29377751eb67da460ce19a0fa5e6
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Tue Jun 28 00:12:06 2016 +0200

    Attempt to get rid of visible directory indices
---
 .htaccess | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.htaccess b/.htaccess
index 73a8e95..bf6a3dc 100644
--- a/.htaccess
+++ b/.htaccess
@@ -51,6 +51,17 @@ RewriteRule ^easy-download(.*) /download/download-easy$1 [R=301,L]
 # Relays
 RewriteRule ^relays(.*) /getinvolved/relays [R=301,L]
 
+# Index Pages
+RewriteRule ^about/$ /about/overview [R=301,L]
+RewriteRule ^cgi-bin/$ / [R=301,L]
+RewriteRule ^css/$ / [R=301,L]
+RewriteRule ^docs/$ /docs/documentation [R=301,L]
+RewriteRule ^eff/$ / [R=301,L]
+RewriteRule ^en/$ / [R=301,L]
+RewriteRule ^images/$ / [R=301,L]
+RewriteRule ^include/$ / [R=301,L]
+RewriteRule ^js/$ / [R=301,L]
+
 # Donation campagin
 RewriteRule ^donate/donate-twitter(.*) /donate/donate$1 [R=302,L]
 RewriteRule ^donate/donate-tbb(.*) /donate/donate$1 [R=302,L]



More information about the tor-commits mailing list