Pixelpost

Authentic Photoblog Flavour

PageByPageArchive for category and month + mod_rewrite v1.7β

 
Download (7.1 KB)

Developer Description

Page-By-Page-Archive for category and month + mod_rewrite

Page-By-Page-Archive for category and month included with Pixelpost 1.7 modified to provide mod_rewrite URLs. You enable mod_rewrite friendly URLs in the ADMIN page under addons. Your .htaccess or apache config needs the following rules: (NOTE: .htaccess file starts with a dot!!! and RewriteBase needs to the path in the URL, e.g. if your website is http://example.com/pixelpost/, then RewriteBase should be "RewriteBase /pixelpost/")


RewriteEngine On
RewriteBase /
RewriteRule ^(about|downloads)/?$ index.php?x=$1
RewriteRule ^browse/?$ index.php?x=browse
RewriteRule ^browse/([1-9][0-9]*)/?$ index.php?x=browse&pagenum=$1
RewriteRule ^browse/category/([1-9][0-9]*)/?$ index.php?x=browse&category=$1
RewriteRule ^browse/category/([1-9][0-9]*)/([1-9][0-9]*)/?$ index.php?x=browse&category=$1&pagenum=$2
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4&pagenum=$5
RewriteRule ^browse/tag/([^/]+)/?$ index.php?x=browse&tag=$1
RewriteRule ^browse/tag/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&tag=$1&pagenum=$2
RewriteRule ^comment/submit$ index.php?x=save_comment
RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
RewriteRule ^(p|photo)/([0-9]+)$ index.php?showimage=$2
RewriteRule ^(p|photo)/([0-9]+)/rating/([1-5])$ index.php?showimage=$2&rating=$3
RewriteRule ^t/latest/?$ index.php?showthumb=latest&thumbtag=image
RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1

Write A Review

  1. Good 4
    Unknown 6 Years Ago Report as Spam

    It's pretty good. But I need a PageByPageArchive for tages too. Can I get that, I'll give you 5 *****. Maybe the TAG MENU addon can work as basis for that?