Thread: PHP Redirection Question
Results 1 to 2 of 2
02-13-2010, 11:25 AM #1
PHP Redirection Question
I am at a bind of how to make
my PHP Redirection to an affiliate
product page work.
This is what I know and have done:
Created a folder called "recommend"
Opened and saved a notepad file in the
"recommend" folder which I named "index.php"
The only content in the "index.php" is
header("location:http: // www. xxx . com");
The XXX.com is replaced with my affiliate
I uploaded the "recommend" folder
with the index.php inside. When I access it
from the browser through XXX.com/recommend,
it does not take me to the affiliate page. In short
it does not work.
Please what am I missing out? Is the above code
complete, or there more coding to make it work
08-01-2010, 01:01 PM #2
Re: PHP Redirection Question
Do you get an error message?
You might have some spaces in the wrong places - here's how I'd write it:
Save that as a plain text file - if you're using Notepad that comes with Windows I highly suggest you stop and get a decent editor like Notepad++
Notepad with Windows can and does place strange random characters on the end of files. Invisible to use but at some times can cause scripts to malfunction.