Hi. I have heard that if your website does not have index.html or index.php page so your website cannot be located on server. It is indispensable to make this page. Is it true?
Hi. I have heard that if your website does not have index.html or index.php page so your website cannot be located on server. It is indispensable to make this page. Is it true?
Not true at all. A DirectoryIndex can be set to any file you want, so it doesn't need to be "index.[anything]." You can also omit index functionality and make the directory contents viewable instead. Furthermore, even if you don't do either of the above, other public pages on your site are still findable and accessible.
I just went to my web site and renamed index.html to something else and I was not able to navigate to my web site.
The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved
When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day
web servers generally have a setting that controls what the default document is. it's usually index.* .... html, htm, php, asp, aspx, and so on... if it can't find the first one, it rolls down the line until it reaches the end of the list. I've messed with this setting before so that it used default.html as the default document... so you can set it to anything you want.
You get an error when the server cannot find any of the files that you've specified as the default document. that doesn't mean you can't navigate to it directly though... it just won't do it automatically.
-tg
* I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
*Proof positive that searching the forums does work: View Thread *
* How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
* How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *
* Use Offensive Programming, not Defensive Programming. * On Error Resume Next is error ignoring, not error handling(tm).
"There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN
The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved
When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day
http://www.mywebsite.com/somefilethatisntindex.htm <-- that's what I mean by directly....
OK... fair enough, I wasn't clear in what I said... in my head I knew what I meant... what I should have said was this:
that doesn't mean you can't navigate directly to the file though
-tg
* I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
*Proof positive that searching the forums does work: View Thread *
* How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
* How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *
* Use Offensive Programming, not Defensive Programming. * On Error Resume Next is error ignoring, not error handling(tm).
"There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN