Page 1 of 1

Index.html as opposed to Index.php ?

Posted: Mon Jun 02, 2003 9:53 am
by GeorgeF
Hi this may seam like a lame question but my ISP insist that the first page to launch my site is named either Index.htm or Index.html.

I have also dicovered that to run any code within htm(l) documents I have to rename my .htm(l) files with the .php extension. However, my index page has some 'includes' for the header and footer within the page that refuse to parse because the extension is .html.

I have thought of a fudge by creating a two frames Index.html with the top frame compleately set to 0 and the bottom frame filling the whole screen I then tell it to load my 'welcome'.php file into this frame.

My question is, how can I get around this without using the fudge described above? I.e. not to use any frames

Any help would be appreciated

Posted: Mon Jun 02, 2003 10:03 am
by twigletmac
Which webserver is your site running on?

Mac

Posted: Mon Jun 02, 2003 10:18 am
by GeorgeF
Here's a link to there PHPINFO. I am not too sure how to read it all yet . I'm just starting out. But I think it will give you the information you need and will answer your question.

http://bargainhost.co.uk/phpinfo.php

Posted: Mon Jun 02, 2003 10:22 am
by Wayne
you could always set up a index.htm(l) page that has no content and just does a redirect to whatever page you want.

Code: Select all

<meta http-equiv="refresh" content="0;url=index.php">

I have just found the solution

Posted: Mon Jun 02, 2003 10:29 am
by GeorgeF
I have just found the solution buried in my hosts documentation:

I quote:-

'1. You don't have a properly named default page in your main WWW directory. Acceptable file names are listed below: index.htm index.html default.html index.sht index.shtml index.cgi index.php3 '

Sorry for the fuss but thanks anyway. I'll rename my Index file with .php3 less the frames and check it out.