Member
Member
danieljamesphoto   2010-02-23, 01:06
#1

Hi, love zenphoto but could do with 'SEOing' the URLs a bit. I have the re-write on but still get

http://danieljamesphotography.net/gallery/Promotional%20Photography/Glass%20College/IMG_1317.jpg.html

the issue is the 'Promotional%20Photography' bit, i want the album name to be called Promotional Photography but the url to be something like promotional_photography.

anyone know how i can fix this please?

many thanks,

Dan

Member
Member
sbillard   2010-02-23, 01:28
#2

You really can't get the %20 to be an underscore--not one of the urelencode RFC options. It could become a plus sign. That would take chaging calls to rawurlencode into calls to urlencode. But there could be some side effects of this as well as in some cases the browser decodes the URL and in others Zenphoto does it. Naturally, both have to agree on how to handle things like plus signs. (Is it a space or is it a plus sign?)

Member
Member
danieljamesphoto   2010-02-23, 02:49
#3

hmmmmm, then a custom path option would be the ideal, which can be edited when needed instead of Zenphoto simply creating the path form the gallery title i guess, possible somehow?

Member
Member
sbillard   2010-02-23, 03:34
#4

Of course, anything is possible. As I have often said, it is just software. However, the developers have no intention of stepping outside the RFC definsions of these URLs. You are, of course, welcome to modify Zenphoto as you see fit. It is open source.

But such a modification will impact many components and be very hard for you to maintain.

Perhaps a better solution would be to use folder names that look more pleasant when converted into URLs.

Administrator
Administrator
acrylian   2010-02-23, 10:38
#5

Actually if uploading via the admin backend clears the album folder names and file names from spaces and makes "-" from it. You can make a custom filter out of the seofilter plugin that uses "_" instead of "-". Or you just upload a album folder with that underscore you want in the first place.

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