ModRewrite Problem

PythonPython Forum LeaderThe Royal RAM
Im trying to use ModRewrite in a htaccess file to rewrite a url. Im using the following code:
RewriteRule ^(tutorials)/(.*)/([0-9]+)/$ /index.php?page=tutorials&cat=$1&id=$2 [nc]

Ok its basically rewriting the URL of index.php?page=tutorials&cat=PHP&id=1 into /tutorials/PHP/1

The problem is that when the cat value is assigned it sort of continues on.. So when I actually echo out $cat in the script then it shows up as: PHP/1 instead of just PHP

This means that I cant get to the id var.

Anyone know a solution?

Thanks

The Royal Ram

Comments

Sign In or Register to comment.