View Full Version : Testing 2 LP with the same YSM acc?
Hi there!, I want to test 2 landing pages with 1 YSM acc ... they are both ringtone related and will be in the same domain. Should I create a new campaign (Campaign 2) and then put all of the keywords I already have working on Campaign 1 into the new one?.... Or would it better to open a new account and then import all keywords, create the ads and use the LP 2?
I'm thinking that If I have 2 campaigns in 1 account (both ringtone related) I'll have duplicate keywords if I want to test 2 LPs..
Any ideas?
That makes sense... do you know what would the .htaccess entry for random redirect look like?
So that code goes in the .htaccess file or in all landing pages?
I have something like this:
/index.php (Landing page 1)
/LP2/index.php (Landing page 2)
/LP3/index.php (Landing page 3)
If I understand correctly I should put that code in "/index.php" (LP1) AND it will redirect randomly to either LP2 or LP3 right?... now, where in that code should I specify the path for LP2 and 3?
This is how I would modify it so far:
<?php
$rand = rand(1,3); <!--3 Landing Pages-->
$lp = 'landing'.$rand.'/index.php'; <!--main LP path-->
header("Location:$lp"); <!--should I change this? -->
?>
Awesome info mate..!
Thank you very much! :D
Ok... just when I thought I had it right ... I got an error message in my page which says:
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home54b/sub001/sc15293-NMRF/MySite.com/index.php:2) in /mounted-storage/home54b/sub001/sc15293-NMRF/MySite.com/index.php on line 5
This is the code I'm using:
<!--Random LP-->
<?php
$rand = rand(5,6);
$lp = 'g'.$rand.'/index.php';
header("Location:$lp");
?>
<!--END Random LP-->
I tried this using a lil different structure:
/index.php (page with the code) (Landing Page 1)
/g5/index.php (Landing Page 2)
/g6/index.php (Landing Page 3)
Any idea how to correct the error?
After using that code I get this message:
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home54b/sub001/sc15293-NMRF/MySite.com/index.php:2) in /mounted-storage/home54b/sub001/sc15293-NMRF/MySite.com/index.php on line 5
I think is the same message... :confused:
I'm placing the code at the very top of the page so the fifth line is;
header("Location:$lp");
Any ideas :confused:
spacing $lp from the column sign had no effect, I still get that message ... :confused:
artarmon42
05-22-2007, 12:16 AM
The header MUST be the first line of code that the browser sees.
Your comments ("<!--") won't get processed, but it still appears to the browser.
Get rid of that and see!
Yeap!, that did it! :D , it seems those "<!--" comments were getting in the way.
There is one last thing I'd like to ask. It seems that when I type my domain I get redirected to either LP2 or LP3 but LP1 which is located at the root folder is not showing up... how can I include that page in the random rotation?
As I said above, this is my folder structure:
/index.php (Landing page 1) <<< NOT SHOWING!
/LP2/index.php (Landing page 2) <<< WORKS FINE!
/LP3/index.php (Landing page 3) <<< WORKS FINE!
AND this is the code after corrections:
<?php
$rand = rand(5,6);
$lp = 'http://www.MySite.com/g'.$rand.'/index.php';
header("Location: $lp");
?>
Ohhh .. ok .. so the only way to do that would be to move the index.php page located at the root to a folder and include it in the code uh?... I got it :D
Thank you guys for all your help! :)
Powered by vBulletin™ Version 4.0.3 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.