Htaccess and gallery2


#1

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.


#2

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.

-Matttail


#3

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).”


#4

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:


#5

I followed the instructions here http://www.htmlbasix.com/disablehotlinking.shtml

and put this .htaccess file in gifdepot.com/GIFs and http://gifdepot.com/albums/GIFsAthruL/

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.)?gifdepot.com/?.$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?lolzing.com/.
$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?forum.ebaumsworld.com/.$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?forum.hate.com/.
$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?forums.offtopic.com/.$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?forums.livingwithstyle.com/.
$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?forums.somethingawful.com/.*$ [NC]
RewriteRule .(gif)$ http://themot.org/gallery/d/4340-1/Hotlinking.png [F,NC]

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

Thanks!

Samples http://gifdepot.com/albums/GIFsAthruL/AkiraBeat.gif
http://gifdepot.com/GIFs/Donny.gif