ok so I have this site where the following variables are being passed through the url: index.php?page=something
based on what 'something' is will determine other variables to be passed, for example:
if something = news then pass $article and $pagenum
This is my htaccess rule for this:
RewriteRule ^news/?(.*)/?(.*)$ index.php?page=news&article=$1&pagenum=$2 [NC,L]
This works fine for:
url.com/news
url.com/news/main - this passes article=main
however:
url.com/news/main/2 - passes article=main/2 instead of article=main pagenum=2
can someone please help me out?