Forum Moderators: coopster

Message Too Old, No Replies

Displaying different pages based on source

         

sicsiksix

9:22 am on May 10, 2010 (gmt 0)

10+ Year Member



Hi,

I'm not sure if this is possible or not based on how it will be set up, but heres the general idea of what we have and what we want to do...

We currently have a company website setup, coded in PHP, on www.example.com

We have an advertising campaign going live soon (online and offline) and wish to use a different URL, www.example2.com.

www.example2.com is currently forwarded to www.example.com, is it possible to display a different page based on whether a user types in the domain name directly or if they come from another site (ad click, with tags for analytics campaign tracking).

- For direct traffic we want people to go to our homepage, as they would only be offline customers.
- For online traffic we want people to go to a specific new page with a form.


---


Also as an additional question, when a domain is forwarded, does it keep the referer information?

Thanks.
Sicsiksix

arvind gupta

7:19 am on May 18, 2010 (gmt 0)

10+ Year Member



When you forward the url example2.com to example.com forward with the query vars and make example.com display the different page when it has the required query vars.

As for the second question, I think when you redirect from one url to another, the former becomes the referrer. But this is a guess. I'm not sure.