Re: htaccess question
| From: | Alex Nikitin | Date: | Mon, 23 May 2011 18:26:38 +0000 |
| Subject: | Re: htaccess question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313122@lists.php.net to get a copy of this message | ||
On Mon, May 23, 2011 at 11:52 AM, Al <news@ridersite.org> wrote:
> How can I prevent access to all files in a directory except one with an
> htaccess file.
>
> I've tried several approaches found with Googling; but, none seem to work..
>
> e.g.,
> <FilesMatch "^(makeScodeImg.php)">
> Order Allow,Deny
> Deny from all
> </FilesMatch>
>
> This seems to me as it should deny to all except makeScodeImg.php
>
> Thanks
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Also don't forget to enable override on the directory, otherwise .htaccess
wont be read at all...
http://httpd.apache.org/docs/2.0/mod/core.html
--
The trouble with programmers is that you can never tell what a programmer is
doing until it’s too late. ~Seymour Cray