.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:
- Process .html as PHP
- Disable Indexes using .htaccess
- Speed Up Your Website with GZIP Compression
- Webmaster Time Savers – Using Includes
- Joomla Search Friendly URLs
- Tell the Robots Where Not to Go
- WWW or Not: That is the Question?
- Blogging with Google Maps
- Include, Include_once, Require, Require_once
- Use Redirections to Help Users and Search Engines


Thanks, this is the answer to my question. Thanks for sharing your knowledge.
Alicia
Your welcome Alicia. I am glad you found it useful.