Forum Moderators: phranque
Can I keep HTML extension in my pages (ranking well in G indexes) and still serve PHP code? Maybe using SSI and adding a few lines to my .htaccess?
Can this affect my ranking (i.e., can google think my pages have changed for being served as PHP)?
>> Can I keep HTML extension in my pages and still serve PHP code?
absolutely, it requires a change to your apache httpd.conf if you are on shared hosting the question to ask them would be
"Can I turn on php parsing for the html extension"
it is usually no big deal
>> Can this affect my ranking?
not at all
>> the question to ask them would be "Can I turn on php parsing for the html extension"
As I'm not renaming my index files to shtml, I think I'll go for the .htaccess approach, but...
>> it is usually no big deal
For newbies on SSI and PHP, it _is_ kind of a big deal :(
Could you explain (or point to other resources) how to do it? Something like:
<body>
PHP tags to call my PHP file, or maybe the PHP code itself...
</body> ... also, the
AddHandler server-parsed .html directive for the .htaccess file doesn't seems to work. Is it ok as it is? Shouldn't be .php instead?
[edited by: txbakers at 7:56 pm (utc) on Mar. 19, 2007]
[edit reason] no links to webhosting URLs per TOS. [/edit]