Forum Moderators: phranque
What sort of advice do you have to protect directories that need to be inaccessible? I'm thinking of things such as data directories for a bulletin board. My host's technical support have been less than useful when I contacted them.
What I've put into my .htaccess file is
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_URI}!./web(/.*¦$) [NC]
RewriteRule /(.*) /web/$1 [L]
This does something, but not what I want.
As it stands, an attempt to access the main my site gives me the document in the existing root. However, if I remove the / before the opening bracket in the rewrite rule I get a 404.
I don't understand this. Anyone able to enlighten me?
Also, am I even approaching the problem in the right way?