I have a unique requirement. I want to read the value in the referrer header. And if the value has a particular string in it, I want to create a query string parameter and append this value to the query string before passing the request on. Is this possible?
1 Answer
Yes, it's possible. You can do it using mod_rewrite. You want RewriteCond to check %{HTTP_REFERER} and then a RewriteRule making use of the [QSA] flag so the current query string is preserved and added to by what you specify in the substitution.