Htaccess and gallery2

I wrote this email to tech support 36 hours ago… maybe I’ll get a quicker response here.

I set up a gallery and added some htaccess security and now I get a
404 on all the albums I’ve uploaded. I removed the htaccess and it’s
still giving me a 404.

I ended up deleting the whole database planning on starting all over. Now, through FTP, I can’t even delete all of the containing folders(or root) to where I can install gallery2 over again.

I’m kind of new to this so any input would be GREATLY appreciated.

Is you FTP client set to show hidden files? If there are hidden files, such as an htacces file, you’ll have to find the setting in your FTP client to show hidden files so you can delete everything.

see if you can find that setting and try deleting your files again.


It was not set to show hidden files, but I changed the setting and it’s still giving me the error message.

I’m using CuteFTP and the error message is, “ERROR:> Requested action not taken (e.g., file or directory not found, no access).”

This is indeed a problem. I just set up a brand-new gallery2 site using the one click, got it up and running fine. As soon as I enabled the “.htaccess” for the “gallery” subdirectory, the whole site broke… it looks like the rewrite module busted. Removing the htaccess setting from the panel and verifying that it was removed from the website did not help… The website is still broken :frowning:

I followed the instructions here

and put this .htaccess file in and

If you test GIFs in those directories they arent replaced by the Spider Man .png as they should be

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://(www.)?$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?
$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?
$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?
$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?*$ [NC]
RewriteRule .(gif)$ [F,NC]

Posting this in this thread cuz I’m running gallery 1, and want to know if this will work in gallery2