ZenphotoCMS Forum
.htpaccess 500 server error - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: .htpaccess 500 server error (/thread-1258.html)



.htpaccess 500 server error - eleses - 07-03-2007

Finally got latest version (nearly) working by deleting the .htpaccess file as mentioned on a post I found. While the database is working fine none of the images are showing up. I'm assuming this is because the .htpaccess file isn't pointing to them. If I reload the .htpaccess file though I get the 500 server error. My .htpaccess file is below and my blogs address is http://blog.kabakun.net. Any advice now would be greatly appreciated.

htaccess file for zenphoto


NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.


RewriteEngine On

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


RewriteBase http://blog.kabakun.net/photos --> /photos


RewriteRule ^admin/?$ zen/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]
RewriteRule ^(.
)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\]+)$ zen/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]




.htpaccess 500 server error - Chilifrei64 - 07-03-2007

change
RewriteBase http://blog.kabakun.net/photos --> /photos
to
RewriteBase /photos

in your .htaccess file.




.htpaccess 500 server error - trisweb - 07-03-2007

Hmm... I should change that wording.

Or make it automatic. heh.




.htpaccess 500 server error - eleses - 08-03-2007

Ok, changed that but still have the same problem. Any other ideas? Before updating it was working fine so I don't see how it could be with my server. Thanks.




.htpaccess 500 server error - trisweb - 08-03-2007

You might just want to start fresh with the .htaccess file, from the installation. Re-do the RewriteBase as shown above.




.htpaccess 500 server error - eleses - 08-03-2007

Ok, I am a muppet. I left the '--> photos' bit in the RewriteBase thing. As a pretty much newbie at all this though I agree that it could be worded a bit clearer. Thanks for the speedy responses though - it's working again!