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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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