Hello all! How would it affect my site if i were to change index.html over to index.php? and if i delete index.html is this bad or should i set index.html to redirect to index.php?
Any ideas?
Thankyou again. Steve.
Dijkgraaf
10:57 pm on Jul 5, 2005 (gmt 0)
There should be minimal or no impact. You make sure that index.php is served up as the default page for a request of http://www.example.com/ Yes, a redirect helps for those who have the old page bookmarked, or bots requesting the old page.
physics
11:06 pm on Jul 5, 2005 (gmt 0)
You can also avoid changing the name while still having a php page by adding this to a file called .htaccess in your web directory (or the apache configuration file httpd.conf)if you're using apache:
AddType application/x-httpd-php .php .html
Now any php tags in all html files will be processed. Note that you'll have to restart apache if you edit httpd.conf (also make a backup first if you do edit it ;)