I am trying to Rewrite path in .htaccess
=-=-=-=-=-EDIT=-=-=
Hi I may not have expressed my problem clearly. So here's a live example of my problem.
"http://fames.in/site/bollywoodhungama.com" - works fine
"http://fames.in/site/bollywoodhungama.com/2" - error
The format of the url is:
http://fames.in/site/(site name)/(page number)
I use the following codes in .htaccess
RewriteRule ^site/(.*)$ sitelist.php?q=$1&page=1
RewriteRule ^site/(.*)/([0-9]+)$ sitelist.php?q=$1&page=$2
the first line works fine. In the second line of the code htaccess passess the whole parameters to 'q'. taking above url it is passed as "/sitelist.php?q=bollywoodhungama.com/2" . I need it to pass the 'q' and 'page' separately. Like "/sitelist.php?q=bollywoodhungama.com&page=2"