Y T Nuke  
Results 1 to 8 of 8
Hi guys, First I hope this is in the proper section. Im using a PHP ...
  1. #1
    BlackHatThomas is offline Newbies
    Join Date
    Feb 2011
    Posts
    1
    Reputation
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Redirect Script

    Hi guys,

    First I hope this is in the proper section.

    Im using a PHP redirect script for some CPA offers I am promoting via classifieds. What Ive noticed is some of my links seem to loop on certain browsers, specifically IE, & never redirect to the offer. I am definitely losing out on commissions because of this.

    Can anyone recommend a way to solve this issue? Is there a better script out there?

    Here is what I am currently using:

    <?php

    header( 'refresh: 0;' );

    ?>

    Thanks is advance for the help!

  2. #2
    ChrarlesNCharge is offline Regular Member
    Join Date
    Apr 2010
    Posts
    456
    Reputation
    23
    Thanks
    70
    Thanked 53 Times in 41 Posts

    Default Re: PHP Redirect Script

    PHP Code:
    <?php 

    header
    'refresh: 0;' ); 

    ?>
    That just refreshes the page. You try meta refresh?

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

  3. #3
    ericsson's Avatar
    ericsson is offline Ultimate Member
    Join Date
    Apr 2009
    Location
    Swe
    Posts
    2,660
    Reputation
    435
    Thanks
    585
    Thanked 8,011 Times in 1,578 Posts

    Default Re: PHP Redirect Script


  4. #4
    Join Date
    Jan 2010
    Location
    USA
    Posts
    1,329
    Reputation
    422
    Thanks
    569
    Thanked 2,147 Times in 400 Posts

    Default Re: PHP Redirect Script

    Here is my code. It works for me on Firefox and IE.

    <?php
    /* Redirect browser */
    header("Location: http://www.domain.com");
    /* Make sure that code below does not get executed when we redirect. */
    exit;
    ?>

  5. #5
    blackhatjack is offline Registered Member
    Join Date
    Dec 2008
    Age
    31
    Posts
    73
    Reputation
    10
    Thanks
    4
    Thanked 4 Times in 3 Posts

    Default Re: PHP Redirect Script

    Quote Originally Posted by efore View Post
    Here I wrote you something, a complaint redirect.
    Code:
    <?
    	$url='redirect to url';
    	header("Location: $url");
    ?>
    
    <html>
    <head>
    <title>Redirecting..</title>
    <META HTTP-EQUIV=Refresh CONTENT="1;URL=<?echo $url;?>">
    <meta name="robots" content="noindex">
    </head>
    
    <body>
    <div align="center">
    	<div style="display:block;">You are being redirected to <?echo $url?>.</div>
    	<div style="display:block;">If you are not redirected <a href="<?echo $url;?>" rel="nofollow">click here</a>.</div>
    </div>
    </body>
    </html>

    Wow thank you very much. Can you explain exactly how to use the above script? Do I add my affiliate link to every place that says "url"?

    Also what would this page be named? Whatever-i-want.php? html?

    Thanks again & thanks to everyone for your help/suggestions

  6. #6
    blackhatjack is offline Registered Member
    Join Date
    Dec 2008
    Age
    31
    Posts
    73
    Reputation
    10
    Thanks
    4
    Thanked 4 Times in 3 Posts

    Default Re: PHP Redirect Script

    Weird, I tried 8 times to log into BHW with this username & it didnt work so I created a new one with my brothers name & now it logs me back into the original..

  7. #7
    Volkow is offline Newbies
    Join Date
    Dec 2010
    Location
    Strasbourg
    Posts
    14
    Reputation
    10
    Thanks
    47
    Thanked 1 Time in 1 Post

    Default Re: PHP Redirect Script

    Try redirect with javascript.

  8. #8
    moozig23 is offline Newbies
    Join Date
    Mar 2010
    Posts
    14
    Reputation
    10
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: PHP Redirect Script

    Use "header(Location: ..." instead of "header(refresh...)" and things will work everywhere.

Dot Gov Backlinks Sale


Smarter Submit

Similar Threads

  1. Replies: 9
    Last Post: 11-23-2008, 01:21 AM
  2. php Cloaking script
    By pome in forum Cloaking and Content Generators
    Replies: 2
    Last Post: 06-05-2007, 06:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76