質問編集履歴

4

やりたい事を具体的に追加

2020/10/28 06:04

投稿

deranail
deranail

スコア14

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,14 @@
3
3
  URLの打ち間違い等により、404エラーが発生した際に
4
4
 
5
5
  特定ページに遷移させる方法を探しています。
6
+
7
+
8
+
9
+ 例)
10
+
11
+ ・・・/index.aspx(存在するページ) を入力された→ページ表示
12
+
13
+ ・・・/indexxx.aspx(存在しないページ)を入力された→error.aspxに遷移
6
14
 
7
15
 
8
16
 
@@ -12,7 +20,7 @@
12
20
 
13
21
  <customErrors mode="Off">
14
22
 
15
- <error redirect="http://google.com" statusCode="404" />
23
+ <error redirect="error.aspx" statusCode="404" />
16
24
 
17
25
  </customErrors>
18
26
 

3

情報の追加

2020/10/28 06:04

投稿

deranail
deranail

スコア14

test CHANGED
File without changes
test CHANGED
@@ -35,3 +35,5 @@
35
35
  ・IIS:10.0
36
36
 
37
37
  ・Windows:10
38
+
39
+ ・Webサイトの種類:WebForms

2

タグの追加

2020/10/28 06:00

投稿

deranail
deranail

スコア14

test CHANGED
File without changes
test CHANGED
File without changes

1

情報の訂正

2020/10/28 05:59

投稿

deranail
deranail

スコア14

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  <customErrors mode="Off">
14
14
 
15
- <error redirect="http://google.com" statusCode="405" />
15
+ <error redirect="http://google.com" statusCode="404" />
16
16
 
17
17
  </customErrors>
18
18