I'm have a bit of a problem with my mod_rewrite script, they all work fine, until I start getting into a sub-sub directory... the weird thing is, it will display the page, just won't change the variable:
RewriteEngine on
RewriteRule ^([0-9]+) index.php?postID=$1
RewriteRule ^page([0-9]+) index.php?page=$1
RewriteRule ^c([0-9]+) index.php?categoryID=$1
RewriteRule ^c([0-9]+)/page([0-9]+) index.php?categoryID=$1&page=$2
RewriteRule ^d([0-9]+) index.php?diverID=$1
RewriteRule ^d([0-9]+)/page([0-9]+) index.php?diverID=$1&page=$2
RewriteRule ^m([0-9]+)-y([0-9]+) index.php?monthID=$1&yearID=$2
The one i'm having an issue with is this:
RewriteRule c([0-9]+)/page([0-9]+) index.php?categoryID=$1&page=$2
This is the script that calls it:
echo ("<a href=\"/newdiveblog/c$_GET[categoryID]/$_GET[page]/\">NEXT $limit</a>");