htaccess

保護 .svn 之類以 dot 開頭的目錄:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} (^|/)\.
RewriteRule . / [L]