0
Index.cfm file
New Here
,
/t5/coldfusion-discussions/index-cfm-file/td-p/441194
Oct 17, 2007
Oct 17, 2007
Copy link to clipboard
Copied
Hi ,
I am new to coldfusion and i would like to have the following items clarified.
1) Why we need to have Index.cfm file
2) What is the diff between Application.cfm and Application.CFC
I removed the index.cfm file from directory and accessed the application and I don't find any difference
Pls advice.
Thanks,
Rams
I am new to coldfusion and i would like to have the following items clarified.
1) Why we need to have Index.cfm file
2) What is the diff between Application.cfm and Application.CFC
I removed the index.cfm file from directory and accessed the application and I don't find any difference
Pls advice.
Thanks,
Rams
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/index-cfm-file/m-p/441195#M39839
Oct 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.
application.cfc is an upgrade from application.cfm. Both will work, but application.cfc gives you more flexiblity in determining when code gets executed.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/coldfusion-discussions/index-cfm-file/m-p/441196#M39840
Oct 17, 2007
Oct 17, 2007
Copy link to clipboard
Copied
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.
Ken
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.
Ken
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

