Welcome to WebmasterWorld Guest from 54.159.214.250

Forum Moderators: Ocean10000 & incrediBILL & phranque

Inserting referer before redirect

referer

   
1:13 pm on Jul 19, 2009 (gmt 0)

10+ Year Member



I have a few sites where some pages are redirected (RewriteRule - 301) to a single one on another site.
The problem is that I can't find a way to find out from which site the page is being redirected, as the redirecting referer is not passed through.
I have tried almost everything related to mod-headers without success.
Any ideas?
3:07 pm on Jul 19, 2009 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The HTTP_Referer header is sent by HTTP clients, so your server can't send it in a redirect.

Consider appending the information to the URL as a query string (or perhaps as a fragment), and then the target site can retrieve it:


RewriteRule ^my-page$ http:othersite.com/single-page?ReferredBy=my-page

Jim
3:20 pm on Jul 19, 2009 (gmt 0)

10+ Year Member



Yes I can add an extra QS as url's already include other queries, but I would prefer referrer solution which seemingly can't be done.

Thanks Jim.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month