ZenphotoCMS Forum
A nicer mod_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: A nicer mod_rewrite? (/thread-1401.html)

Pages: 1 2


A nicer mod_rewrite? - steve.goodmedia - 2009-02-27

Hi and thanks for the reply - i am getting unusual results for urls - i have UTF8 image URIs and mod rewrite enabled

the images are all going in with the same title format and displaying as follows

Jen Akenyemi - Flowers Traditional.jpg
Gerry Carnelly - Purple Octopus
Gerry Carnelly - Siamese Fighting Fish

http://www.tattoo.tv/gallery/colour/Jen-Akenyemi-Flowers-Traditional.jpg
http://www.tattoo.tv/gallery/colour/Gerry+Carnelly+-+Purple+Octopus.jpg
http://www.tattoo.tv/gallery/artists/Gerry%20Carnelly%20%28Octopus%20Tattoo%29/Gerry+Carnelly+-+Siamese+Fighting+Fish.jpg

Thank you

Steve




A nicer mod_rewrite? - sbillard - 2009-02-27

The URLs are, of course, based on the filenames, not the titles.




A nicer mod_rewrite? - steve.goodmedia - 2009-02-27

Thank you very much - that probably is the problem - is there a way through htaccess of changing the spaces to - as opposed to +




A nicer mod_rewrite? - steve.goodmedia - 2009-02-27

or a quick way of removing spaces in a folder ?




A nicer mod_rewrite? - sbillard - 2009-02-27

.htaccess would not help--you would have to change the file names. Don't know what platform you are on, but there is probably a file/folder renaming utility for it that would do the job. Remember to refresh the Zenphoto database once you do this. Also this may well cost the loss of any metadata you have entered through admin backend editing.