Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Does HTML extension rank better than PHP?

         

sobole

3:46 pm on Jan 3, 2009 (gmt 0)

10+ Year Member



Which version of a site would rank batter? I find that html seems to rank better in Google.
Any thoughts?

tedster

6:04 pm on Jan 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The extension itself means nothing for ranking - nothing at all. Any differences you see are going to be created by other factors and technical issues.

ZydoSEO

9:43 pm on Jan 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



/agree w/ tedster.

encyclo

9:51 pm on Jan 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only issue with file extensions is if you configure your server to use a custom extension to serve HTML files which conflicts with other supported mime-types recognized by Google. In other words, don't use the extension .exe for your HTML files, or they probably will be ignored.

Other than that, Google doesn't care about the file extension, whether .php, .html, .aspx or anything else. Only the HTML output is parsed, not the underlying code.

Even dynamic URLs (with variables) are no longer a problem for Google, as long as they are set up so as not to create infinite duplicate content or "infinite content loops" (for example where dynamic URLs can be incremented to infinity). So the potential weakness of dynamic sites are in relation to their relative complexity, and not in relation to their underlying technology.

Simsi

9:23 am on Jan 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Agreed. I'd also recommend always using the .php extension, even if your files are just HTML as it gives you the framework down the line if you want add extra functionality (ie: geo-targetting) without having to go back and change all your filenames.

Habtom

9:50 am on Jan 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd also recommend always using the .php extension...without having to go back and change all your filenames

Not necessarily for the reason you have given as your html files can be configured to run PHP code adding the following code in your .htaccess file.

AddType application/x-httpd-php .html

pageoneresults

2:48 pm on Jan 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Also keep in mind that there is an unwritten rule that Google will not index anything ending with .0

I'd also recommend always using the .php extension.

I'd recommend that you rid yourself of the extensions altogether. Just don't use them anymore. They serve no purpose in the overall scheme of things other than to cause grief for Webmasters when they need to change the underlying technology of the site.