ZenphotoCMS Forum
Clean URLs for tags - 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: Clean URLs for tags (/thread-5268.html)



Clean URLs for tags - Michel - 2009-06-04

I have Zenphoto already installed for almost 1.5 year together with Wordpress, and it is a great combo.
The only thing I don't like is the url when you have selected a tag. On my imagepage I have two tags underneath the image so you can select the tag you want to see.( it is a website with airplane pics so the tags are model and airline company)

Example: page/search/tags/EasyJet+Airline

I saw a topic from almost a year ago with the hack included but I tried several times but I think that the hack doesn't work anymore on Zenphoto 1.2.5

See: http://www.zenphoto.org/support/topic.php?id=2136

Can anybody tell me if the hack still work on Zenphoto 1.2.5 or maybe another solution?

The only thing I want is to remove the page/search in the url so that I have a http://www.somewebsite.com/tags/EasyJet+Airline url.

TIA




Clean URLs for tags - sbillard - 2009-06-04

You would have to modify your .htaccess file to treat the tags the same as /page/search/tags. Then you can remove the '/page/search/' from the url.




Clean URLs for tags - Michel - 2009-06-04

Thank you for your reply sbillard.

I was too busy with the hack from last year that I didn't see the simple solution, this is wat I did:

  • In .htacces underneath the "####Rewrite rule addition for search" all the page/search renamed to tags (8 times)
  • In template-function.php on rule 3918 and rule 4009 renamed page/search to tags.

That did the trick.