.htpaccess 500 server error

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.

<IfModule mod_rewrite.c>
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]
</IfModule>

Comments

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

    in your .htaccess file.
  • trisweb Administrator
    Hmm... I should change that wording.

    Or make it automatic. heh.
  • 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.
  • trisweb Administrator
    You might just want to start fresh with the .htaccess file, from the installation. Re-do the RewriteBase as shown above.
  • 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!
Sign In or Register to comment.