質問編集履歴

2

詳しく質問愛用を追加いたしました。

2016/09/09 15:21

投稿

miku_is
miku_is

スコア8

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,18 @@
1
1
  ###前提・実現したいこと
2
2
 
3
3
  現在サブディレクトリイへのアクセスの際index.htmlを消してもアクセスができるように振り分けようと考えていますがうまくいきません。
4
+
5
+
6
+
7
+ http://www.test.com/a/
8
+
9
+ にアクセスすると
10
+
11
+ http://www.test.com/a/index.html
12
+
13
+ にアクセスとさせたいです。
14
+
15
+
4
16
 
5
17
  .htaccessの設定のみでできると調べてみましたがなかなかうまくいきませんでした。
6
18
 

1

打ち間違えです

2016/09/09 15:21

投稿

miku_is
miku_is

スコア8

test CHANGED
File without changes
test CHANGED
@@ -26,13 +26,13 @@
26
26
 
27
27
  ```.htaccess
28
28
 
29
- # ErrorDocument 401 http://www.test.com/a/index.html
29
+ ErrorDocument 401 http://www.test.com/a/index.html
30
30
 
31
- # ErrorDocument 403 http://www.test.com/a/index.html
31
+ ErrorDocument 403 http://www.test.com/a/index.html
32
32
 
33
- # ErrorDocument 404 http://www.test.com/a/index.html
33
+ ErrorDocument 404 http://www.test.com/a/index.html
34
34
 
35
- # ErrorDocument 500 http://www.test.com/a/index.html
35
+ ErrorDocument 500 http://www.test.com/a/index.html
36
36
 
37
37
 
38
38