First of all I would like to thank the CPG developers community for such a great software!
I have read this thread
http://forum.coppermine-gallery.net/index.php?topic=69.0 and done the modifications posted by Oasis to make nice url's to users galleries - and it worked fine in CPG 1.3.2
Just wanted to add my little improvement:
in original code a url like
www.somesite.com/someuser would work fine, but a url like
www.somesite.com/someuser/ (with an ending "/") would fail.
To correct this you can add a line in .htaccess, redirecting
www.somesite.com/someuser/ to
www.somesite.com/someuser before other lines.
I used this regexp and it worked fine:
RedirectMatch ^/([a-z0-9&_=]+)/$ /$1
The second step, I think, is to make url's look like this:
www.somesite.com/someuser/album_name to point to a specific album. Users would love it.
I thought, that a redirect like
RedirectMatch ^/([a-z0-9&_=]+)/([a-z0-9&_=]+)$ /thumbnails.php?album=$2
would work, but it does not in Apache 1.* because "?" is translated into "%3f" and you can't pass arguments to a redirected script. It seems to be an Apache bug, which have been fixed in Apache 2 (not sure about it though, read somewhere else).
RewriteRule works with this regexp, but not entirely suitable:
you are actually on
www.somesite.com/someuser/thumbnails.php, not
www.somesite.com/thumbnails.php and links dont work, css and images don't load correctly, etc.
Anyone has done it before? Any ideas would be very appreciated. Thanks.
PS
Sorry, it looks like I chose the wrong place for my post, please move it to appropriate topic