Forum Moderators: open

Message Too Old, No Replies

Displaying Different Home Page Depending on Inbound URL

Different Homepage for different inbound ref URL?

         

Chief

3:50 pm on Apr 10, 2003 (gmt 0)

10+ Year Member



We use referral codes for each different keyword used in the PPC search engines.

Is there a way to make our homepage (index) display different content depending on the inbound reference code used?

For example a click to www.anysite.com/ref?1 would show a different homepage than www.anysite.com/ref?2

ANY IDEAS, TIPS?

Thanks

Nick_W

3:55 pm on Apr 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Actually it's very easy. You'd need to use a server-side programming language like PHP. (maybe you could do it with JS though..?)

Pseudo Code

[pre]
<?
if($_GET['ref'])=="value1") {
show this page
} else show that page
?>[/pre]

Nick

johnhamman

4:27 pm on Apr 10, 2003 (gmt 0)

10+ Year Member



But would a search engine concider this cloaking?
john

bcolflesh

4:33 pm on Apr 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's not cloaking, because your originating url is different with the addition of the variables.

Regards,
Brent

Chief

7:03 pm on Apr 10, 2003 (gmt 0)

10+ Year Member



Thanks.

Mind emailing me some links where I could find more info or a similiar ready made script?

Nick_W

7:09 pm on Apr 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here ya go:
Google Directory Listings for Cloaking [directory.google.com]

Nick