Double Meta refresh query

createrk

Junior Member
Joined
Jan 5, 2009
Messages
161
Reaction score
17
Hello,

I am running across some trouble in Double Meta Refresh.

I have the following code as below in say www.example.com created for meta refresh for placing the file.

Both the files are hosted in same place fyi.

index.php:
Code:
<?php
    $referer = $_SERVER['HTTP_REFERER'];
    if($referer == "")
    {
        echo "<meta http-equiv="refresh" content="0;url=http://www.example.com/url1.php">";
    }
?>

url1.php
Code:
<?php
    $referer = $_SERVER['HTTP_REFERER'];
    if($referer == "")
    {
        echo "<meta http-equiv="refresh" content="0;url=http://www.affiliatelink.com">";
    }
?>

Now in my incentive landing page when i click on the offer, the page goes to www.example.com and freezes. Its not proceeding further.

Can someone help me out?

Thanks
 
In your index file there is no need for a check..make it a simple meta refresh..

<meta http-equiv="refresh" content="0;url=http://example.com/"/>

PLUS when your using PHP...before every quote " ...you have to put a slash for php can't read it...something liek this "

Code:
<?php
    $referer = $_SERVER['HTTP_REFERER'];
    if($referer == "")
    {
        echo "<meta http-equiv="refresh" content="0;url=http://www.affiliatelink.com">";
    }
?>

There that should work for you

Wow just realized that the slash in the code function is removed...just remember a SLASH before the QUOTES and a simple meta is only needed for the first one..
 
WoW. It worked wonders for me:)

I changed for just simple meta refresh without any check on referrer and it loaded perfectly .

I didnt edit the url1.php and left it as it is.

Thanks
 
Ok so I tried this and it did not work. This is what I did:

I have a domain, lets say its cakes.c0m (its not but lets just say it is)
I have a wordpress installed on that domain.

I went into my ftp and made a new subfolder, I called it url1.

I opened the new subfolder named url1

I put two separate files in that subfolder. The two separate files were index.php and url1.php

After I did that I tried to go to cakes.c0m/url1/index.php

I got this message: You have reached this web page by typing "example.com", "example.net", or "example.org" into your web browser.

These domain names are reserved for use in documentation and are not available for registration. See RFC 2606, Section 3.



I know I probably sound pretty noob but Im really tryin. lol :)
Thanks guys
 
only :
Code:
<meta http-equiv=refresh content=0;url=http://www.affiliatelink.com">

no more 99999 *[COLOR=Red]"[/COLOR]*
 
Back
Top