ZenphotoCMS Forum
is there a way to get rid of /page/ in the 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: is there a way to get rid of /page/ in the URL? (/thread-6787.html)



is there a way to get rid of /page/ in the URL? - sketchy - 2010-03-17

i don't see a reason for the /page/ in the middle of the URL's.

http://mysite.com/page/search/
would be better as
http://mysite.com/search/

and
http://mysite.com/page/aboutme/
would be better
http://mysite.com/aboutme/

yes?

does anyone know if this is an easy fix? or hack?
perhaps a filter?

cheers!




is there a way to get rid of /page/ in the URL? - sbillard - 2010-03-17

You can reset mod_rewrite. Or you can figure out how to change your rewrite rules to not need the /page/ which you consider unnecessary.




is there a way to get rid of /page/ in the URL? - acrylian - 2010-03-17

You can modify the .htaccess file but then you need to be careful that you don't have pages and albums of the same name.




is there a way to get rid of /page/ in the URL? - sbillard - 2010-03-17

And, of course, the .htaccess needs to know which items are pages and which are albums.




is there a way to get rid of /page/ in the URL? - sketchy - 2010-03-17

thank you. i will look into it.