URL structure

    Zenphoto has a specific URL structure for all front end items we explain here. We recommend to use mod_rewrite but Zenphoto works without it as well. The examples assume Zenphoto has been installed in the root of a domain.

    Mod_rewrite links (SEO friendly)

    The URL's are not completly rewritten via mod_rewrite/htaccess but internally. Therefore some parts can be changed via the rewriteToken plugin.

    Gallery
    Gallery index:
    yourdomain.com
    Gallery index, several pages:
    yourdomain.com/page/<pagenumber>
    Album (thumbnail page):
    yourdomain.com/<albumname>/
    Album, several pages:
    yourdomain.com/<albumname>/page/<pagenumber>
    Sub album (similar for more levels):
    yourdomain.com/<albumname/subalbum>/
    Image page (sized image):
    yourdomain.com/<albumname>/<imagename.suffix><mod_rewrite suffix e.g .html (optional*)>
    Link to a tag:
    yourdomain.com/page/search/tags/<tagname>
    Date archive link:
    yourdomain.com/page/archive/<YYYY-MM>
    Static custom page:
    yourdomain.com/page/<custompagename>

    *strongly recommended as otherwise search engines may reject these pages as pretending to be an image file!

    Zenpage CMS plugin

    News:
    yourdomain.com/news/
    News, several pages:
    yourdomain.com/news/<pagenumber>
    News category:
    yourdomain.com/news/category/<category titlelink>
    News category, several pages:
    yourdomain.com/news/category/<category titlelink>/<pagenumber>
    Single news articles:
    yourdomain.com/news/<article titlelink>
    News date archive:
     yourdomain.com/news/archive/<YYYY-MM>
    Page:
    yourdomain.com/pages/<page titlelink>

    Note: Although Zenpage pages and news categories can be nested it is not reflected in the URL. The benefit is that on re-sorting/re-nesting the links never outdate.

    Non mod_rewrite links

    Gallery
    Gallery index:
    yourdomain.com
    Gallery index, several pages:
    yourdomain.com/index.php?page=<pagenumber>
    Album (thumbnail page):
    yourdomain.com/index.php?album=<albumname>
    Album, several pages:
    yourdomain.com/index.php?album=<albumname>&page=<pagenumber>
    Sub album (similar for more levels):
    yourdomain.com/index.php?album=<albumname/subalbum>
    Image page (sized image):
    yourdomain.com/index.php?album=<albumname>&image=<imagename.suffix>
    Link to a tag:
     yourdomain.com/index.php?p=search&words=<tagname>&searchfields=tags
    Date archive link:
     yourdomain.com/index.php?p=search&date=<YYYY-MM>
    Static custom page:
     yourdomain.com/index.php?p=<custompagename>

    Zenpage CMS plugin

    News section:
    yourdomain.com/index.php?p=news
    News section, several pages:
    yourdomain.com/index.php?p=news&page=<pagenumber>
    News category:
    yourdomain.com/index.php?p=news&category=<category titlelink>
    News category, several pages:
    yourdomain.com/index.php?p=news&category=<category titlelink>&page=<pagenumber>
    Single news articles:
    yourdomain.com/index.php?p=news&title=<article titlelink>
    News date archive:
    yourdomain.com/index.php?p=news&date=<YYYY-MM>
    Page:
    yourdomain.com/index.php?p=pages&title=<page titlelink>

    Note: Although Zenpage pages and news categories can be nested it is not reflected in the URL. A benefit of this is that on re-sorting/re-nesting the links never outdate.

    Creative Commons LicenseThis text by www.zenphoto.org is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

    Code examples are released under the GPL v2 or later license

    For questions and comments please use the forum or discuss on the social networks.

    Related items