Click to See Complete Forum and Search --> : Server-side redirect to default.cfm


tarsus
07-11-2006, 12:16 PM
I inherited site files with default.cfm files in each directory. How do I set up a server-side redirect that makes all requests for /somedirectory/ go to /somedirectory/default.cfm?

NogDog
07-13-2006, 11:39 AM
If on an Apache web server, just create a .htaccess file in your root web directory (or edit the existing one if already there) to include default.cfm as a default page, for example:

.htaccess

DirectoryIndex default.cfm index.cfm index.html index.htm default.html default.htm

tarsus
07-14-2006, 05:06 PM
I'm afraid I'm running ColdFusion's built-in server, actually. My apologies; I should have mentioned that in the beginning. I tried your .htaccess suggestion anyway, though, and no luck. Any idea how to do this on ColdFusion's server? (I'm just running ColdFusion's built-in server on a development machine, by the way.)