Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Possible Duplicate:
SEO - Changing file extension

Hi,

Is SEO effected when URL changes from .php to not including .php? For example, if you change a URL from example.com/about.php toexample.com/about, do you lose the earlier SEO impact?

I am replacing an older website, and want to keep the URL the same for SEO purposes. The problem is that the older URL includes .php at the end.

I'm replacing the website with a new WordPress site, and when I add the .php) to the URL, the formatting is disrupted. I can create a URL that is the same, but I can't add the .php at the end.

Does anyone know how I could add .php to the URL without having the format be interrupted?

share|improve this question

migrated from stackoverflow.com May 25 '11 at 22:54

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

marked as duplicate by John Conde May 25 '11 at 22:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

Do a .htaccess 301 redirect:

redirect 301 /about.php http://www.example.com/about

This'll tell browsers to update their bookmarks, inform search engines of changes, and just generally get things moving to the new url.

share|improve this answer
1  
or more generally: RewriteRule ^(.*)\.php http://www.example.com/$1 [L,QSA,R=301] –  HorusKol May 25 '11 at 23:42