There wasn't an .htaccess file in the .zip I downloaded, so I'm trying to make my own. However, I don't know what's supposed to be in it.
I put everything in a folder called gallery, seen here:
http://jinabolton.com/gallery/
However, I can't go to the admin because I don't know what to put in my .htaccess file. I know I could just tell it not to use it, but I'd rather have clean URLS. I do have modrewrite and all that.
Could someone please tell me what is supposed to be in this file? Thanks!
What worked for me (taken from this forum) looks like this:
RewriteEngine On
RewriteBase /gallery
RewriteRule ^zen/(.)$ - [L]
RewriteRule ^tests/(.)$ - [L]
RewriteRule ^admin$ admin/ [R]
RewriteRule ^admin/?$ zen/admin.php [QSA,L]
RewriteRule ^admin/admin.css$ zen/admin.css [R,L]
RewriteRule ^admin/admin.js$ zen/admin.js [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [QSA,L]
RewriteRule ^([^/.]+)/?$ index.php?album=$1 [QSA,L]
RewriteRule ^([^/.]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [QSA,L]
RewriteRule ^([^/.]+)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zen/i.php?a=$1&i=$3&s=$2 [QSA,L]
RewriteRule ^([^/.]+)/image/([^/\]+)$ albums/$1/$2
RewriteRule ^([^/.]+)/([^/\]+)$ index.php?album=$1&image=$2 [QSA,L]
that is including your RewriteBase with the subdirectory.
It worked! Thank you so much!
It may be a problem with packaging the installer with a .htaccess file. Maybe for the next package the .htaccess file could lose the dot, that way it's viewable. Maybe have instructions that say add the dot after FTPing up to server. I my self took forever to try and figure this one out. On OSX heres a way to view that hidden .htaccess file
I'm a newbie and a retard, but when it says in the .htaccess # !!! Change this to the absolute path !!!
RewriteBase /gallery exactly which part of that do i change? do i change "!!! Change this to the absolute path !!!" or what?
Basically, i've been working for hours trying to get this .htaccess to work and it doesnt. the site is located at www.duanejurma.com and i have the zenphoto gallery installed in that root folder. so what exactly do i need to have in that htaccess file to make everything work?
Thanks in advance.
Follow exactly the instructions: http://www.zenphoto.org/2007/12/installation-and-upgrading/
Then no need to modify anything manually.
Did you copy the whole set of files from the distribution including the .htaccess file? If not, please do. Also be sure that the zenphoto scripts have write access to the root folder (and all the other zenphoto folders.) Then setup will fix your .htaccess file for you.
I got it working thanks to your instructions.
THanks