Member
Member
jinabolton   2005-10-07, 02:51
#1

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!

Member
Member
rsilletti   2005-10-07, 03:03
#2

What worked for me (taken from this forum) looks like this:

RewriteEngine On

!!! Change this to the absolute path !!!


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.

Member
Member
jinabolton   2005-10-07, 03:13
#3

It worked! Thank you so much!

Member
Member
reidab   2005-10-07, 17:21
#4

Chances are there was a .htaccess file but your system uses a unix-like filesystem and treats files beginning with a . as hidden files.

Member
Member
rsilletti   2005-10-08, 05:36
#5

Does that on my Mac, I have to use Transmit 2 to create my .htaccess files, otherwise they look right but have what I think are line breaks that the server doesn't like.

Member
Member
amory   2005-10-08, 15:12
#6

//Does that on my Mac

you can always search for hidden files if you don't want to have to go through another program to find them...

Member
Member
kennysnipes   2005-11-21, 06:45
#7

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

http://www.osxfaq.com/DailyTips/02-2005/02-01.ws

Member
Member
rubenkalath   2008-06-12, 04:22
#8

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.

Administrator
Administrator
acrylian   2008-06-12, 08:41
#9

Follow exactly the instructions: http://www.zenphoto.org/2007/12/installation-and-upgrading/
Then no need to modify anything manually.

Member
Member
sbillard   2008-06-12, 22:27
#10

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.

Member
Member
rubenkalath   2008-06-14, 02:27
#11

I got it working thanks to your instructions.
THanks

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.