23 points · by agotterer · 17y ago · 11 comments
We use svn export anyway, but wouldn't ignoring (.) directories be the most foolproof step?
Regardless, this problem exists and it exists on some extremely large websites.
RewriteRule (\.svn)/(.*?) - [F,L]
Note the backslash before the .svn directory.I'm also not entirely sure that the question mark (zero or one quantifier) is necessary; it seems like
(.*)
would suffice for catching files within the .svn directory, but this is quickly getting out of my league.