1

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 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.