ZenphotoCMS Forum
Picture title in URL - 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: Picture title in URL (/thread-12321.html)



Picture title in URL - mazze - 2015-09-22

Hi,
it is possible to take the images Title in the URL?

such as
www.domain.de/album_name/subalbum_name/title_of_picture.html

regards,
Matthias




Picture title in URL - acrylian - 2015-09-22

No, the title is independent from the filename and it also can be multilingual so it is not even unique.




Picture title in URL - IanWorthington - 2015-12-03

@acrylian:

The URL is /always/ the filename.extension? No way of changing it?

i




Picture title in URL - fretzl - 2015-12-03

Not really but you could try enabling the tinyURL plugin.
That would produce something like yourwebsite.org/tiny43450




Picture title in URL - acrylian - 2015-12-03

tinyURL of course would be not so great for SEO. That's more for sharing if you need short urls (Twitter for example).

@IanWorthington: No, sorry. Reason - besides this is legacy being that way since always - is simply that Zenphoto needs to differ the different types (album, image, news, pages and so on) as you otherwise easily run into URL conflicts. album/image could also be a subalbum named "image" of the album "album" otherwise.

You can however remove the rewrite suffix after the image suffix (so album/image.jpg instead of album/image.jpg.html) This however seems to cause SEO issues with google though mistaking the image page for an actual image file though.




Picture title in URL - IanWorthington - 2015-12-03

OK, thanks guys. I'll stop fighting it and rename my images how I want them to appear before I upload them then.

@acrylian: I notice I get /image.jpg anyway. It sounds like I should turn that off. How do I do so please?

i




Picture title in URL - acrylian - 2015-12-04

Take a look at Options > General > URL options > mod_rewrite suffix. Default should be ".html". ".php" is not recommended as it sometimes triggers stricter server security on some servers thinking this is a php page pretending to be an image.




Picture title in URL - IanWorthington - 2015-12-05

Thanks. Added that in, now fixed.

i