Hello everybody!
I would appreciate some help with following issue:
i have photo gallery with about 1000 images which i had to change the script for as old version of script was not working any more :/
photos are located in 82 albums.
each photo had it's own page with url that has .html on the end.
i managed to redirect via .htaccess all albums (82) to match old url.
however, i don't know what to do with photos pages.
at the present, they are shown in folder manner:
www.mysite/gallery/animals/my-cat/
i would like photo pages to show :
www.mysite/gallery/animals/my-cat.html
"animals" is title of the album, which is fine, by "my-cat" is title of the photo.
do you think this is possible to achieve via .htaccess ?
is there any other solution?
thanks for any suggestion!
Ps - this is what i now have written in .htaccess file (code which i got with gallery script):
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /gallery
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^index.php/(.*) $1 [QSA,R,L]
</IfModule>