Is there any way to set the http referrer to the url of the page a 301 redirect is redirecting from..

So far, I’ve created this

RewriteCond %{HTTP:X-Forwarded-For} ($
RewriteRule (.*) [R=301,L]

This does not retain the referring URL, say that to be or something.

How can I make sure a http referrer is actually sent?

Assume that I am using a standard http connection, not https.

Read more here: Rewrite 301 Redirect does not keep Http Referrer


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: