SEO Tip: Safe PHP redirect

Search engines are particularly harsh to sites that use hard redirects to another page. If you are using PHP and need to have a page redirect to another location, use this code:

<?php
header(”HTTP/1.1 301 Moved Permanently”);
header(”Location: http://www.newdomain.com/newpage/newurl.htm”);
exit();
?>

thanks for posting this. So

thanks for posting this. So if you do the redirect at the domain hosting level (e.g. click the 'Moved Permanently' button) will it still preserve your page rank?

Submitted by Casey Jackman (not verified) on Wed, 04/09/2008 - 07:44.

User login

Who's online

There are currently 0 users and 1 guest online.

Recent Comments From Blogs

I like the description. Coz I have never been such a cold european country. But I love to see and visit Finland someday.
What a peaceful country. I saw many nature pics of Finland. But I knowledged more from this lovely, description of this US boy.

I’ve always imagined other African countries as more “traditional” Africa (I think of Kenya first), so it’s interesting to hear it’s one of the least “morphed”. And that it’s green and has spicy food…I’ve never really put Ethiopia on my list of places I wanted to travel to until now.

There’s been much criticism about the WSS protests “not being very Buddhist!”
Recently we see in the news (see link below) Tens of thousands of South Korean Buddhists peacefully demonstrating waving placards and fists, chanting
“Oppose religious discrimination” against their country’s leader and government.

Are they not Buddhists too?

http://www.thesun.co.uk/sol/homepage/news/article1613188.ece

Hi Adriana,

I do not know anything about that. Does anyone else?
I believe the company is based in Germany, but my only guess is that being technically in Mauritius offers a certain favorable tax status?
But I really don’t know. Is anyone wiser on this issue?

Clint,
I really appreciate that you started this blog. I have been contacted by them and also wondered about their legitimacy. My advisor says that the company is in Mauritius. Do you know anything about that?
Adriana