Member
Member
muesli   18-06-2007, 11:21
#1

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?

Member
Member
muesli   18-06-2007, 11:25
#2

ps. old htaccess:
`

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 /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:
`

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 /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]

`

Member
Member
thinkdreams   18-06-2007, 13:39
#3

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.

Member
Member
muesli   18-06-2007, 14:08
#4

that worked - thanks a lot!

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