another 403 / .htaccess-problem

Hello forum,

I've just uploaded the files of the nightly build to my server (scheel.org/galerie), but I got a 403 Forbidden error when i tried to access setup.php. After deleting .htaccess I could access and finish installation. But that wasn't a solution: After uploading .htaccess back, zenphoto was again inaccessible (403).

(Problem occures with 1.1.4, 02/01/2008, too)

Content of .htaccess:
`# htaccess file version 1.1.4.0

# Update the above and the define in setup.php when you make changes to the rewrite rules!

# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory. (Or let setup.php do it for you!)



RewriteEngine On

#### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!

RewriteBase /galerie

####

RewriteRule ^admin/?$ zp-core/admin.php [R,L]

RewriteCond %{REQUEST_FILENAME} -f [NC,OR]

RewriteCond %{REQUEST_FILENAME} -d [NC]

RewriteRule ^.*$ - [R,L]

RewriteRule index.php$ index.php [L,QSA]

RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]

RewriteRule ^page/([A-Za-z0-9-_]+)/?$ index.php?p=$1 [L,QSA]

RewriteRule ^(.*)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]

#### Rewrite rule addtion for seach

RewriteRule ^page/([A-Za-z0-9-_]+)/fields([0-9]+)/(.*)/([0-9]+)/?$ index.php?p=$1&searchfields=$2&words=$3&page=$4 [L,QSA]

RewriteRule ^page/([A-Za-z0-9-_]+)/fields([0-9]+)/(.*)/?$ index.php?p=$1&searchfields=$2&words=$3 [L,QSA]

RewriteRule ^page/([A-Za-z0-9-_]+)/archive/(.*)/([0-9]+)/?$ index.php?p=$1&date=$2&page=$3 [L,QSA]

RewriteRule ^page/([A-Za-z0-9-_]+)/archive/(.*)/?$ index.php?p=$1&date=$2 [L,QSA]

RewriteRule ^page/([A-Za-z0-9-_]+)/tags/(.*)/([0-9]+)/?$ index.php?p=$1&searchfields=4&words=$2&page=$3 [L,QSA]

RewriteRule ^page/([A-Za-z0-9-_]+)/tags/(.*)/?$ index.php?p=$1&searchfields=4&words=$2 [L,QSA]

RewriteRule ^page/([A-Za-z0-9-_]+)/(.*)/?$ index.php?p=$1&words=$2 [L,QSA]

RewriteRule ^page/([A-Za-z0-9-_]+)/(.*)/([0-9]+)/?$ index.php?p=$1&words=$2&page=$3 [L,QSA]

RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]

RewriteRule ^(.*)/image/([^/\]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA]

####

# Catch-all - everything else gets handled in PHP for compatibility.

RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]

`

Trying Kraks hint from this thread (http://www.zenphoto.org/support/topic.php?id=155&replies=3#post-681) and adding `Options FollowSymLinks` to the top of .htaccess gives me a 500 Internal Server Error.

I'd be grateful for any hint.

Comments

  • addenum: Can I run zenphoto without the provided (and adapted) .htaccess-file? Do I just forgo that nice URL-thing or does it generate new problems?

    Thanks ;-)
  • acrylian Administrator, Developer
    Sure you can run zp without the htaccess file, but you need to disable mod rewrite in the admin options. But then you don't get nice urls. It could simply be that your ISP does not support mod rewrite.
Sign In or Register to comment.