Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
coldfusion で 404 エラーまたはページが見つからないエラーを処理する方法、要求されたページが見つからない場合にカスタム エラー メッセージを表示するコードは何ですか。
ありがとう、 ユガル
いくつかのオプションがあります。
IISまたはApacheで、デフォルトの404エラーハンドラーを変更して、選択したcfmファイルを指すようにします。
Application.cfcで、onMissingTemplate関数を設定して、Webサーバーが実際に存在するかどうかを確認する前にColdFusionに送信される.cfmファイルの要求を処理します。
ダン