View Single Post
  #4 (permalink)  
Old 10-09-2007, 09:35 AM
wige's Avatar
wige wige is online now
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,900
wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10
Default Re: .php or .htm for web pages

As an evil hacker, I have all my pages show as html whenever possible. I also override the X-Generated-By header to further hide that the pages are PHP. I then set the server to process all .html pages as php. This way, if a PHP exploit is ever found, my site is much less likely to be targeted. It also looks better in the serps, because pages ending in .html seem to be more trusted by the user than sites ending in .php (This is the case, at least, after limited testing with users who are somewhat technically adept). It doesn't affect ranking, but it can improve the click through rate.
__________________
The best way to learn anything, is to question everything.
WigeDev - Freelance web and software development
Reply With Quote