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

Possible Duplicate:
SEO - Changing file extension


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.

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
or more generally: RewriteRule ^(.*)\.php http://www.example.com/$1 [L,QSA,R=301] – HorusKol May 25 '11 at 23:42