Forum Moderators: coopster

Message Too Old, No Replies

Using PHP Redirects

         

steveweber123

3:29 pm on Apr 8, 2007 (gmt 0)

10+ Year Member



Hello,

I have a question about PHP redirects. Can someone verify if my use of the scripts below are proper for what I am doing with them?

I am using the first script to cloak affiliate links on my site. The second script I am using for redirection of a page I have moved from one of my domains to another of my domains.

I am worried about the first script. Are there any negatives with respect to Google for using this script? Should I include a no follow tag in front of the cloaked link on my page?

Any advice or comments about this process will be appreciated.

<?php header( "Location: http://www.example.com " );?>

<?
header("HTTP/1.1 301 Moved Permanently");
header("location: http://www.example.com");
exit();
?>

Thank you,
Steve Weber

[edited by: dreamcatcher at 4:50 pm (utc) on April 8, 2007]
[edit reason] Use example.com, thanks. [/edit]

ahmedtheking

8:06 pm on Apr 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think just have a simple location redirect. You don't want to be confusing Google! Or, even better, use .htaccess to do it rather than PHP.