I have this code for my htaccess file:
RewriteEngine On
RewriteRule /([^/]+)?$ index.php?page=$1
RewriteRule /([^/]+)/([^/]+)?$ index.php?page=$1&var1=$2
RewriteRule /([^/]+)/([^/]+)/([^/]+)?$ index.php?page=$1&var1=$2&var2=$3
It works fine however when I print out the get array on index.php it ignores the first variable so i have to do something like spareslist.com/randomthing/page/var1/var2
How would I be able to use this without having to have a random variable before the others?