Is there any difference, with respect to SEO, performance, or otherwise, in setting 301 redirects in a .htaccess file vs calling PHPs http_redirect()
Is there any difference, with respect to SEO, performance, or otherwise, in setting 301
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using the .htacess method prevents PHP being invoked which is technically faster. As it’s sometimes said that SEO is influenced by response time, this can be a benefit.
Next to that webservers most often have a better implementation of the redirect procedure which is often honoured by SEO – and if not that, then by your potential site users.
If you’re looking for a better implementation in PHP, see
http_redirect.