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} (138.91.49.132)$
RewriteRule (.*) http://www.whatismyreferer.com/ [R=301,L]

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

How can I make sure a http referrer mywebsite.com 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


Solution:

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: