.html Versus .php for SEO

Posted in SEO | By LGR | On February 28th, 2007

I was asked the other day if search engines favor a .html file extension versus a .php file extension? The answer I gave the client was no, it makes no difference, search engines will index pages with both file extensions the same, but there are some things that can make a difference. If you are using a GET query string on the .php page then the Google Webmaster Guidelines suggests that the parameters should be kept short and limit the number. I suggest no more than three, but some people say up to five is fine. It is also suggested to keep session ids out of the URL.

If people are serious about not using a .php file extension, there are other solutions. If you are just using php to template your website, you can just process .html as .php and no one will know the difference. If you are passing parameters in the URL you should consider using mod_rewrite to create friendly URLs. You can learn more about mod_rewrite by reading the DigitalPoint mod_rewrite FAQ, and of course the Apache 1.3 documentation or Apache 2.0 documentation.

Similar Posts:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • email
  • FriendFeed
  • Reddit
  • RSS
  • Twitter
  1. Alicia says:

    Thanks, this is the answer to my question. Thanks for sharing your knowledge.

    Alicia

  2. LGR says:

    Your welcome Alicia. I am glad you found it useful.

Leave a Reply

COMMENT


My Comment Policy: I moderate comments. Please be patient:

  • Spam will happily be destroyed.
  • Use your real name, not some keywords. Otherwise it will be destroyed.
  • Mean comments aren't necessary.
  • Lewd comments will be edited, I don't want my readers leaving because of offensive content.
  • Great debate, ideas, criticism and colorful commentary is always appreciated and approved!
«
»