Link to home
Start Free TrialLog in
Avatar of dxladner
dxladnerFlag for United States of America

asked on

Coldfusion index.cfm page not loading when typing in the partial root URL

I have a Coldfusion website that works great except when you type in the partial URL. Then the index.cfm does not load correctly. But when I type the complete path, it works great. for example, www.test.com/lib/index.cfm works great. But when I type in www.test.com/lib/  the page does not load correctly which should as the index.cfm page is the default document. I have tried mappings without luck. Any ideas? CF10 is running on Win 2K3 server with IIS 6.
Avatar of SidFishes
SidFishes
Flag of Canada image

-deleted-
Does it load index.html file

Create one index.html and then inside that file

use the meta tag refresh and set it to 0 and place your url as:  www.test.com/lib/index.cfm

It will work. This is the One way of doing it.

Seconf Option will be to check your IIS settings to list the default.cfm or index.cfm file as the main file to load, Make changes there and it will start working, You may need to start the IIS
Avatar of dxladner

ASKER

Yes. I created a index.html file and it loads perfectly.
I tried your method of using the meta refresh tag but does not as it gets caught in a loop redirect back and forth.
did u tried like this:

<meta http-equiv="refresh" content="0;URL='http://www.test.com/lib/index.cfm'" />
yes. exactly like that. what happens is the index.html page gets loaded. Then does the redirect to the index.cfm file. So now i have to default pages: index.cfm and index.html. So when I type in the http://www.test.com/lib/  it will not load any pages. When I type http://www.test.com/lib/index.html I get redirected to the index.cfm page. When I type in http://www.tes.com/lib/index.cfm then I go to the index.cfm but no luck with just the http://www.test.com/lib/ nothing loads.
Hold on, I do get an error that my datasource was not found when I type in just the path, but when I type in the full URL the index.cfm page loads normal. SO it is like when I type in the path only, it cannot see my datasources, but there are there and working as when I type in the full URL, everything works correctly.
Thanks for all of your help! I really appreciate it!
Still having issues with my website not loading correctly when typing in the partial path. Any ideas??? Anyone??
ASKER CERTIFIED SOLUTION
Avatar of dxladner
dxladner
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have accepted my own comments as a solution because, I could not get any correct responses and after some time: trail and error, I was able to fix my issue on my own using a cflocation tag within the OnRequestStart function in my Application.cfc which redirects to the full absolute path to my index.cfm page.