Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 04-19-2009, 11:02 AM   #1
Senior Warrior Member
War Room Member
 
Michael Nguyen's Avatar
 
Join Date: Jan 2009
Location: London
Posts: 1,029
Thanks: 60
Thanked 147 Times in 103 Posts
Default Making a 301 php no follow redirect

Hi there warriors I need some help to make a 301 php nofollow redirect.

This is what I have

This works
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.hotmail.com" );
?>

This doesn't
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.hotmail.com"rel="nofollow" );
?>

as it gives me this:

Parse error: syntax error, unexpected T_STRING in /public_html/michaelnguyen/test/index.php on line 3

Thank you for your reply

Michael Nguyen is offline   Reply With Quote
Old 04-19-2009, 03:17 PM   #2
Personal hygiene coach
 
mojojuju's Avatar
 
Join Date: Aug 2005
Location: Potemkin Village
Posts: 1,083
Thanks: 268
Thanked 377 Times in 254 Posts
Social Networking View Member's Twitter Profile 
Default Re: Making a 301 php no follow redirect

Quote:
Originally Posted by michael_nguyen View Post
Hi there warriors I need some help to make a 301 php nofollow redirect.

This is what I have

This works
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.hotmail.com" );
?>

This doesn't
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.hotmail.com"rel="nofollow" );
?>

as it gives me this:

Parse error: syntax error, unexpected T_STRING in /public_html/michaelnguyen/test/index.php on line 3

Thank you for your reply
Get rid of the rel="nofollow". That has nothing to do with http headers as your script is producing. If you want to block robots, then use .htaccess or php or robots.txt to block the user agents that you don't want to follow.
mojojuju is online now   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
301, follow, making, php, redirect

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 08:56 AM.