Hi guys,
First I hope this is in the proper section.
Im using a PHP ...
-
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!
-
-
-
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/" />
-
-
Re: PHP Redirect Script
-
-
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;
?>
-
-
Re: PHP Redirect Script

Originally Posted by
efore
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
-
-
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..
-
-
Re: PHP Redirect Script
Try redirect with javascript.
-
-
Re: PHP Redirect Script
Use "header(Location: ..." instead of "header(refresh...)" and things will work everywhere.
-
Similar Threads
-
By turbotec in forum PHP & Perl
Replies: 9
Last Post: 11-23-2008, 01:21 AM
-
By pome in forum Cloaking and Content Generators
Replies: 2
Last Post: 06-05-2007, 06:51 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks