Forum Moderators: coopster
I can tell you for sure that it will
index.html and index.php are different pages
the original should disappear until such time as the redirect is followed and the new page can get into the index
I would suggest not changing a page extension. If you would like to add php parsing for the .html extension then you can make a change to the server to allow it
are you using Apache?
All of my web pages have an HTML extension. I've been testing an RSS feed on a PHP test page, and now I want to install it to my home page. So, it is only the home page, index.html, that will have the PHP codes.
I'm very new to PHP, and after testing the RSS feed, I'm beginning to see its elegance. I wish I had it installed from the beginning!
So, what do I need to do to add PHP parsing for my HTML extension?
Something like this in your .htaccess file should work (you can use wildcard * for all files):
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^index.html$ index.php
</IfModule>
---
From what I've discovered .php and .htm are indexed just the same, but remember that index.php?refer=1 and index.php will both be indexed and ranked seperately. If you change to index.php and your inbound links are pointing to your domain, I would have though your ranking would remain. If the links point to the file index.html that's another matter, all your inbound links will need to be updated!