OK, I have search for how to do a 301 redirect, but the search comes up with a lot of $%^# I don't want to read through. Does anyone know of a thread that explains it?
different way to doing redirect for 1 page or several pages. RewriteEngine ON Redirect 301 /old-page.html http://www.newdomain/new-page.html Code (markup):
and to convert that to php: <? header("HTTP 301 Moved Permanently"); header("Location: http://www.learnaboutspam.com/spam/default.asp"); ?> PHP:
I guess I don't really know what a 301 redirect accomplishes. Is it just sending the user/bot to a different page. Sort of like a meta refresh? (only different) IIS 5 is what I am using.
A 301 tells the browser (and SEs) that the requested document has been moved permanently to another location and also what this new location is. Meta refreshes are almost ignored by SEs as they can be conditional.
<? header("HTTP/1.0 301 Moved Permanently"); header("Location: http://somesite.com/"); exit; ?> PHP: 301's can be conditional too