Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-29-2011, 11:54 PM   PM User | #1
famerdave
New to the CF scene

 
Join Date: Nov 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
famerdave is an unknown quantity at this point
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.
famerdave is offline   Reply With Quote
Old 11-30-2011, 12:27 AM   PM User | #2
famerdave
New to the CF scene

 
Join Date: Nov 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
famerdave is an unknown quantity at this point
This was moved to the Coldfusion area, but maybe Apache config would be a better area? Thanks
famerdave is offline   Reply With Quote
Old 11-30-2011, 07:19 PM   PM User | #3
Gjslick
Regular Coder

 
Join Date: Feb 2009
Location: NJ, USA
Posts: 476
Thanks: 2
Thanked 70 Times in 69 Posts
Gjslick will become famous soon enough
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
Gjslick is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:44 PM.


Advertisement
Log in to turn off these ads.