homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

301 redirect by php

 4:17 pm on Jan 22, 2014 (gmt 0)

I am changing the layout of a website born in 2005. I have html and php pages that I have to redirect.
I am writing the follow php code:
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.example.com/new-page/" );

I am not able to edit .htaccess, so I wonder if (from a Google point of view) a php redirect by php is accepted.
My doubt is that Google help does not mention any php redirect, but only .htaccess.


brotherhood of LAN

 4:56 pm on Jan 22, 2014 (gmt 0)

It doesn't make a difference what serve side technology you use, Google will only see the end result. In other words, using PHP to generate a 301 response and redirect is fine.


 5:03 pm on Jan 22, 2014 (gmt 0)

Thank you for you support and for the good news

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved