Gossamer Forum
Quote Reply
Referrer URL
I use this code to get the referrer page.
sub Get_Page_Referrer {
return $ENV{HTTP_REFERER};
}

Is there a way to get the referrer URL as it before the Rewrite?
So if now I get www.mysite.com/aaa_bbb/
I will get www.mysite.com/page.cgi?g=aaa_bbb
Quote Reply
Re: [nir] Referrer URL In reply to
Not sure it can be done in the script, but have you tried some Javascript?

Code:
<script>document.write(document.referrer);</script>

?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Referrer URL In reply to
Thanks, it returns the same URL as the cgi code, but I will look if there is something else.

Last edited by:

nir: Jun 21, 2010, 7:15 AM