質問編集履歴
4
やりたい事を具体的に追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,10 +2,14 @@
|
|
2
2
|
URLの打ち間違い等により、404エラーが発生した際に
|
3
3
|
特定ページに遷移させる方法を探しています。
|
4
4
|
|
5
|
+
例)
|
6
|
+
・・・/index.aspx(存在するページ) を入力された→ページ表示
|
7
|
+
・・・/indexxx.aspx(存在しないページ)を入力された→error.aspxに遷移
|
8
|
+
|
5
9
|
自身で調べたところ、Web.configファイルに
|
6
10
|
<system.web>
|
7
11
|
<customErrors mode="Off">
|
8
|
-
<error redirect="
|
12
|
+
<error redirect="error.aspx" statusCode="404" />
|
9
13
|
</customErrors>
|
10
14
|
</system.web>
|
11
15
|
を追加すると良いと書いてありましたが、うまく行きませんでした。
|
3
情報の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,4 +16,5 @@
|
|
16
16
|
・VisualStuido:2015
|
17
17
|
・.Net FrameWork:4.0
|
18
18
|
・IIS:10.0
|
19
|
-
・Windows:10
|
19
|
+
・Windows:10
|
20
|
+
・Webサイトの種類:WebForms
|
2
タグの追加
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
情報の訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
自身で調べたところ、Web.configファイルに
|
6
6
|
<system.web>
|
7
7
|
<customErrors mode="Off">
|
8
|
-
<error redirect="http://google.com" statusCode="
|
8
|
+
<error redirect="http://google.com" statusCode="404" />
|
9
9
|
</customErrors>
|
10
10
|
</system.web>
|
11
11
|
を追加すると良いと書いてありましたが、うまく行きませんでした。
|