简体   繁体   中英

IIS Redirects not working with ColdFusion 11

Our IIS Redirects are not working with ColdFusion 11. IIS 8.5 (on Win2012) redirects work fine only if there are no ColdFusion files specified in the URL.

The redirects are specified to redirect to a specific URL, to redirect to the exact destination, and to send an HTTP Response code of 301 Permanent Redirect.

However, with a .cfm file on the URL, the response is "The page cannot be displayed because an internal server error has occurred." The HTTP Response Code is 500 Internal Server Error. The web logs shows it as a 404.0 File Not Found error.

If we add the 'missing' .cfm file, the .cfm file gets processed ... thus, there is no redirect. It seems that the Connector is taking over before IIS can respond and process the Redirect.

Any ideas? thank you

You could add a <cflocation> tag and give it a 301 status code if it meets the conditions that would cause you to want to redirect.

I've had the same problem myself and this worked for me, though you may not be in the same boat.

https://wikidocs.adobe.com/wiki/display/coldfusionen/cflocation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM