Toefur
February 5th, 2003, 07:27
I want a script that can redirect visitors based on the URL or IP address that they came from.
What I want to do exactly is put a header like the following, in the top of my php web pages:
<?php
$redirect_url = "http://othersite.com";
include("/server/location/script.php");
?>
So I will place that at the very top of my (former html) php pages, and then all traffic (except the IP's and such I list) get's sent to the other site listed as the redirect URL, and the IP's and URL's I add to the script get to view the page as they normally would.
I'm only new at PHP, so I don't think I can do something like this.
Would it be hard to do? If I got someone to do it for me, they wouldn't charge too much?
What I want to do exactly is put a header like the following, in the top of my php web pages:
<?php
$redirect_url = "http://othersite.com";
include("/server/location/script.php");
?>
So I will place that at the very top of my (former html) php pages, and then all traffic (except the IP's and such I list) get's sent to the other site listed as the redirect URL, and the IP's and URL's I add to the script get to view the page as they normally would.
I'm only new at PHP, so I don't think I can do something like this.
Would it be hard to do? If I got someone to do it for me, they wouldn't charge too much?