Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need one practical advice - is better to redirect with .htaccess Redirect 301 rules, or to use PHP header function (after parsing URL)?

Which one is better to Google and SEO?

Tnx in adv!

share|improve this question

migrated from stackoverflow.com Jul 24 '11 at 15:43

This question came from our site for professional and enthusiast programmers.

up vote 10 down vote accepted

HTTP clients cannot tell what caused a server to return a 30x redirect status, so it makes absolutely no difference.

share|improve this answer
Ok for HTTP clients, but what about search engine spiders? – user6211 Jul 24 '11 at 15:52
Search engine spiders are HTTP clients (except the one used for Mystic Meg's Special Search Engine, which reads the minds of the content authors instead). – Quentin Jul 24 '11 at 15:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.