Hi!
I am trying to bet a bit of interactivity to my site and have it have different points linking a to a page with a “funny” message which just has a redirect code back to an anchor point in my top level page.
I can get it to redirect on its own with a plugin and a bit of messing with code, BUT I was thinking and this comes from not knowing if it is possible at all, Could I somehow track the page I used to be on before getting redirected OR have the redirect page know where I was on that page with all the content? Such as I only have one redirect page that can variably sent users back to different “urls”/spots depending where they came from.
I don’t know if such is possible with WP tools of any kind or should I ask about this in web dev,HTML subs?
I am just a beginner designer learning as I go and such technical terms and functions are not as well know to me yet.
[ad_2]
Sure, you can use PHP to find the referrer URL, although it can be spoofed (not that it really matters for a low intensity application like the one you’re describing here.)
It’s found in the $_SERVER superglobal as such:
$_SERVER[‘HTTP_REFERER’]