ZenphotoCMS Forum
Gallery 2 to zenphoto, URL rewrite - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Gallery 2 to zenphoto, URL rewrite (/thread-4747.html)



Gallery 2 to zenphoto, URL rewrite - hkdigit - 2009-02-24

I just migrate all my photos from Gallery 2 to Zenphoto. However, i don't know how to write rewrite rule for 1:1 mapping 301 redirection?

Main Page:

http://www.hkceleb.com/gallery -> http://www.hkceleb.com/pic

Album :

http://www.hkceleb.com/gallery/v/alley-chan/ -> http://www.hkceleb.com/pic/alley-chan-lok-yiu/

Photo:

http://www.hkceleb.com/gallery/v/carisa-yan/carisa-yan-080524-144928.jpg.html -> http://www.hkceleb.com/pic/carisa-yan-wing-shan/carisa-yan-080524-144928.jpg.htm

Many thanks in advance.




Gallery 2 to zenphoto, URL rewrite - maxslug - 2009-02-24

I'm interested in doing the same for my Coppermine gallery.

Old / CPG : http://warped.org/pix
New / ZP : http://warped.org/photos

cheers!
-m




Gallery 2 to zenphoto, URL rewrite - maxslug - 2009-02-24

What about a simple PHP script that would be called any time you go into the old tree (coppermine/gallery) that did a database lookup against ZP and 301'd you to the picture there?

I'm thinking it would 404 if it didn't find anything so that you could expire old photos from the old gallery.

admins? ;-)