.htaccess in albums directory denies everything
PeppyFool
Joined: 2003-08-10
Posts: 1 |
Posted: Sun, 2003-08-10 20:56 |
OK, I got Gallery up and running with ease (thanks, guys!) My question has to do with trying to secure the /albums/ directory per the method described in the Album Security section of the installation guide. Here is the contents of my .htaccess file: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /gallery/ RewriteCond %{HTTP_REFERER} !^http://www.peppyfool.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://peppyfool.com.*$ [NC] RewriteCond %{REMOTE_HOST} ^.*\.shutterfly.com$ [NC] RewriteRule .*.(jpg|gif|avi|png)$ - [F] </IfModule>
My gallery is located in http://www.peppyfool.com/gallery/ With this .htaccess file, none of the images are accessible from a browser session by linking or by direct access, which is exactly what I want. HOWEVER, Gallery itself can no longer access the images, either! If I remove the .htaccess file, Gallery works just fine. Obviously there is an error in the way that I wrote the RewriteCond lines, but I'm only .00000002% fluent in Apache server so I don't know what to do to get it to work right. Any ideas? Thanks! |
|