Hi, love zenphoto but could do with 'SEOing' the URLs a bit. I have the re-write on but still get
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
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?)
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?
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.
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.