CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   web.config and .htaccess (http://www.codingforums.com/showthread.php?t=245054)

famerdave 11-29-2011 11:54 PM

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

Code:

<!-- Web.Config Configuration File -->

<configuration>
  <system.web>
    <customErrors mode="On" defaultRedirect="/site_control.cfm"/>
  </system.web>
</configuration>

I'm hoping you can help, and this will fix it.

famerdave 11-30-2011 12:27 AM

This was moved to the Coldfusion area, but maybe Apache config would be a better area? Thanks

Gjslick 11-30-2011 07:19 PM

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:

Code:

ErrorDocument 404 /site_control.cfm
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.

-Greg


All times are GMT +1. The time now is 04:50 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.