Reputation: 7663
i need to do a 302 redirect to a partner company domain. they want to track all of their incoming traffic.
will my index.html 302'd page not pass referrer info?
how do i configure this page to pass the referrer info, if not.
Upvotes: 1
Views: 5916
Reputation: 248
You could make a simple index page telling the user it's being redirected. Instead of using 302 http redirect, you can use the following script to redirect the user. This will result in the referer being set to your domain.
<script>
window.location = "https://www.someplace.nl/";
</script>
Upvotes: 0
Reputation: 400902
The referer is sent by the browser, and there is not much you can do about that.
If they really want to track which users came from your website, a solution would be to add a parameter to the URL you are redirecting to.
For instance, instead of redirecting to
http://www.otherserver.com/index.php
You would redirect to something like :
http://www.otherserver.com/index.php?from=mysite
But, of course, this means more work, both on your side and theirs...
Upvotes: 4