Hi guys,

I've recently developed a website which has two domains, a primary
(lets say test.com) and a secondary (test2.com)

Test2.com uses a 301 Moved response to redirect the user to Test.com -
however the client is interested to know if I can somehow display the
landing page differently for users which have come from the secondary
domain (A different banner for instance)

To do so I was banking on using the $_SERVER['HTTP_REFERER'] variable,
which I'd hoped would contain the secondary domain as its value when
this redirection was occurring. The problem is that the secondary
domain is stored in the ref variable only the first time, if at all,
and is otherwise empty when attempting to access the website using the
secondary domain.

Can anybody suggest a workaround for this?

Cheers!
Rowan

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to