Apache Regex How To Get This Value

I have a URI like this:

http://example.com/demo/makemoney?matchtype=chancee&network=agagag&ifmobile=1&placement=nyc&adposition=111&copy=25&pid=123&zid=231&mid=234&cid=342&param1=zaleemm&param2=vatansvr

I want to get makemoney and after “?” character values. In my .htaccess file write this rule:

RewriteRule ^demo/(.*)?(.*)$ demo.php?utm_campaign=$1&$2 [L,NC]

But only utm_campaign I get in $_GET super globals. What’s true regex?


Source: .htaccess

Leave a Reply