PHP Scripts Don't Have to End in .PHP By Robert PlankIf you tweak your site to perform better in search rankings then you practice
science of Search Engine Optimization (SEO). It's possible to start using PHP scripts on your site without losing that high ranking of yours.
You've probably noticed your site rise and fall in search engine rankings quite a bit. That's just how it goes since search engines such as Google like to change their algorithms around.
If one day you decide to rename all
files on your site you can be sure your Google listing will moved off page 1 of your target search keyword onto
back-listings of page 67 and beyond.
When you rename a file on your site, and another site links to that file, anyone coming to your site thru that particular link will get an error. When a search engine crawler sees this, it decides your site and decides either to lower your ranking or delete
URL from its search results entirely.
Search engines don't want to send their visitors to Not-Found pages... makes sense, doesn't it?
Okay, so let's say you don't want to have a ton of broken links across your site, which will cause you to drop in
search results, but you want to tinker with PHP a little bit.
There's an easy fix for that. You can actually name your PHP scripts so that they end in .htm or .html, and have them run as PHP scripts on your web server. So from
outside world it'll look as if your site is full of "updated-by-hand" content.
All you have to do is add this line to your .htaccess file:
AddType application/x-httpd-php .html .htm
If you don't have an .htaccess file, all you have to do is put that line of code up there into a new text file, save it as ".htaccess" (with
dot in front) then upload it to your web server.