Snippets v2

Languages
My Snippets

Restrict .svn Directories with Apache Config (.htaccess) Login or Register to Bookmark this snippet

Description Apache Log

For when you use SVN to keep your website up to date, but don't want the meta file publically visible.

The Code Download
  1. <IfModule mod_rewrite.c>
  2.     RewriteRule ^(.*/)?\.svn/ - [F,L]
  3.     ErrorDocument 403 "Access Forbidden"
  4. </IfModule>
  5.  
Credits Contact JC

Added by JC on 16th March, 2009

Comments

There are no comments about this snippet.

Post Comment HTML is allowed

You must be registered and logged in to post a comment.

Login here to post a comment