ZenphotoCMS Forum
rewriting rules - getting rid of page/-- ? - 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: rewriting rules - getting rid of page/-- ? (/thread-7050.html)



rewriting rules - getting rid of page/-- ? - frankm - 2010-05-13

hi,

i am working on rewriting my urls. i have created couple pages using zenpage and they are normally referenced as:
pages/pagename

in the .htaccess file i have added the rules so that when some enters the url mydomain.com/pagename it goes to the right zenpage. yest the internal links all refer to pages/pagename. of course if one clicks on a link it still goes to the right page but then the url is not like what i would like it to be ! how can i make sure that the links from within zenphoto will follow the rewriting rules i have written ?

also( i know i've read somewhere on the forum about it but can't find the post anymore) is there a way to get rid of the "/page/" in the url ? and have something like /search instead of /page/search for instance.

thanks for your help.
frank.




rewriting rules - getting rid of page/-- ? - acrylian - 2010-05-13

You have to try to create a rewrite rule that rewrites the page url to leave out the "page". However Zenphoto generates urls that way as otherwise Zenphoto might mistake a page for an album. /search is an album named "search".