PHP Redirect Script

Status
Not open for further replies.
Joined
Feb 9, 2011
Messages
1
Reaction score
0
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!
 
PHP:
<?php 

header( 'refresh: 0;' ); 

?>

That just refreshes the page. You try meta refresh?

PHP:
<meta http-equiv="refresh" content="0;url=http://example.com/" />
 
U might take a look here mate.

http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/224283-free-content-gateway-geotarget-rotate-offers-session-cookies-instructions.html
 
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;
?>
 
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 :)
 
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..
 
Use "header(Location: ..." instead of "header(refresh...)" and things will work everywhere.
 
Status
Not open for further replies.
Back
Top