Forum Moderators: phranque

Message Too Old, No Replies

change page extensions....

change from .html to .php?

         

ezyid

10:07 am on Jul 5, 2005 (gmt 0)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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 ;)