Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6751919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:59:03+00:00 2026-05-26T12:59:03+00:00

I just got a custom handler set up to redirect with a 301 response

  • 0

I just got a custom handler set up to redirect with a 301 response for some old coldfusion page references that I have on my new mvc 3 site. The problem is, I have to actually have the .cfm files on the server for the handler to take effect. If they’re not there, my customerrors element is taking over and doing a 404 redirect…when the files are there, works like a peach. My issue is that I’d have to create a boat-load of empty files for the handler to grab them and I’d like for it to just work w/o having the file physically on the machine.

….is this possible? Does the customerrors element always take precedence? Is there a way to override that?

here is my handler node:

<add name="ColdFusionRedirect" path="*.cfm" verb="*" type="MySite.Services.ColdFusionRedirect, MySite" resourceType="Unspecified" />

Edit: it turns out it’s not the customErrors node that’s taking over, my handler just flat out doesn’t work when there is no file…I still get 404s. How can I make this call my custom handler even when files don’t exist?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:59:04+00:00Added an answer on May 26, 2026 at 12:59 pm

    You want to add this to your global.asax RegisterRoutes method:

    routes.IgnoreRoute(“{resource}.cfm/{*pathInfo}”);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just got Delphi 2009 and have previously read some articles about modifications that
I have a custom Http Handler which manipulates HTTP POST and GET. I got
I just got a dedicated server from a hosting company, and for some reason,
I've got a simple ASHX handler that returns an dynamically generated image; the image
I currently have a custom session handler class which simply builds on php's session
I just got floored by a command from my manager, saying that in our
With Sync Framework 2.1, batching seems to have got in-built support, so in some
For experimentation I've got a UIViewController and a custom window that intercepts touch events,
I've got custom fonts loading in my application just fine, but since I can't
I've got a UserControl that is essentially just a TextBox with optional built-in validators

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.