Referrer URL & Current URL

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
osinski
Posts: 20
Joined: Tue 15. Feb 2005, 03:54

Referrer URL & Current URL

Post by osinski »

Hello,

is there a Replacement Tag for Referrer URL & Current URL?
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Hello osinski,

Referer:

Code: Select all

[PHP]
echo $_SERVER[HTTP_REFERER];
[/PHP]
and current URL: {SITE}

Jürgen
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

it's a bit false.

{SITE} is just a replacement tag for the base URL like http://www.phpwcms.de/forum but has no additional like /mypage.html

To have the current URL use

Code: Select all

[PHP]echo FE_CURRENT_URL[/PHP]
or you can also create a custom replacement tag for this in frontend_render.

Referer is correct. But often this value is empty.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply