Possible Duplicate:
Mod Rewrite and Using PHP’s GET for URL’s When not Following the Rules
I've been scratching my head over this for days... I have a instance where a URL needs to pass different variables on a $_GET
string.
I'm looking to parse the following URL:
http://www.domain.com/1/count/?var1=a&var2=b
Basically, I need to parse count
as a $_GET['var3']
variable along with other additional vars appended after the trailing slash (?var1=a&var2=b
).
I've tried the following along with many other options, but it results in a 404:
RewriteRule ^1/(count|list|detail)$/$ /1/service.php?method=$1
RewriteRule ^1/(count|list|detail)$/$ /1/service.php?method=$1&$2?
I've scoured many docs and answers, but I can't find an applicable answer and admit, it's driving me slowly insane!
Any help would be graciously accepted and appreciated.