/t5/coldfusion-discussions/index-cfm-file/m-p/441195#M39839Oct 17, 2007
Oct 17, 2007
Copy link to clipboard
Copied
regarding index.cfm. It's the equivalent of index.html or
defaul.html. You don't really need one, but, if you don't have one
you'll have url issues later on.
application.cfc is an upgrade from application.cfm. Both will
work, but application.cfc gives you more flexiblity in determining
when code gets executed.
/t5/coldfusion-discussions/index-cfm-file/m-p/441196#M39840Oct 17, 2007
Oct 17, 2007
Copy link to clipboard
Copied
LATEST
Just to clarify/expand on the previous answer - the index.cfm
file allows you to access a URL without actually specifying the
file name. That is, if you point your browser to www.mydomain.com/
then the server will look for a default file in the root directory.
The default file is typically index.html or default.html as stated
previously. On a web server using CF files it is often index.cfm.
The actual name of the default file is specified in the web server
such as IIS on Windows servers.
If you specify a URL such as the above without specifying the
filename and there is no default file it will produce an error.
If you do specify a filename in the URL -
www.mydomain.com/main.cfm - then the existence of the default file
is not an issue.