Originally Posted by Finner
i.e. how does $image_permalink = "<a href='$showprefix$image_id'>$lang_permalink</a>"; change to /photos/photo.jpg ?
$image_permalink = "<a href="photos/'$image_id'>$lang_permalink</a>";
the cleanest method is to locate the $showprefix definition, and change that to 'photo/' or whatever.
BTW, the new URL's, according to that htaccess anyway, will be "../photo/01" instead of "../index.php?showimage=1" - not "../photo/firstimage_24734763.jpg"
depending on how you've coded your templates, they may need to be modified as well; adding a BASE HREF tag can help resolve relative locatioms..