web.config and .htaccess
Hope this is the correct section, but i have the web.config, I need converted to a .htaccess
It seems the site was developed on a coldfusion windows server, and I'm moving it to a CF Linux Server. It was done on IIS6 so the rewrite code the orginally developer did is WAY confusing, and is using like a custom 404 at site_control.cfm
Btw, the Index file just loads site_control.cfm
I'm hoping you can help, and this will fix it.
<!-- Web.Config Configuration File -->
<customErrors mode="On" defaultRedirect="/site_control.cfm"/>
This was moved to the Coldfusion area, but maybe Apache config would be a better area? Thanks
Yeah, definitely an Apache question. I don't know too too much about Apache, but I believe you can just use the
ErrorDocument directive in the apache config file. Ex:
Or you might be able to do that on a per-directory basis with a .htaccess file in the particular directory you're interested in.
ErrorDocument 404 /site_control.cfm