hello all,
i just upgraded from 1.0.3 to 1.0.8.2. (first there was a problem with my custom theme, so i disabled that one - by renaming the theme dir to sth else - to see if everything else is working.)
so now everything works (album list, album view, admin) but image view doesn't work in SOME albums: http://www.helge.at/photos/thailand/dsc_3288.jpg.jpg
In others they do: http://www.helge.at/photos/sahara/mauretanien-strand1.jpg.php
Notice the different endings?
The problem is that neither format is what I used before. Before my URLs looked like this: http://www.helge.at/photos/burkina2003/dsc_7558.jpg (which now breaks as well).
(I want to keep technology information - "php" - out of my URLs.)
Any ideas?
ps. old htaccess:
`
RewriteEngine On
RewriteBase /photos
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^([^/]+)/?$ index.php?album=$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/([^/]+)$ albums/$1/$2 [L]
RewriteRule ^([^/]+)/([^/]+)$ index.php?album=$1&image=$2 [L,QSA]
`
new htaccess:
`
RewriteEngine On
RewriteBase /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]
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
`
The extra ending (.php) is due to an additional feature added in the latest zenphoto release. You can look for:
// If mod_rewrite is true above, zenphoto's image page URL's usually end in .jpg,
// set this if you want something else appended to the end (helps search engines).
// Examples: .html, .php, /view, etc.
$conf['mod_rewrite_image_suffix'] = '.php';
and turn it off by commenting it out.