Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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.

  • #2
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This was moved to the Coldfusion area, but maybe Apache config would be a better area? Thanks

  • #3
    Regular Coder
    Join Date
    Feb 2009
    Location
    NJ, USA
    Posts
    476
    Thanks
    2
    Thanked 70 Times in 69 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •