Apache Regex How To Get This Value

I have a URI like this:


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

This site uses Akismet to reduce spam. Learn how your comment data is processed.