質問編集履歴
3
コード修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -34,6 +34,7 @@
|
|
34
34
|
```htaccess
|
35
35
|
<IfModule mod_rewrite.c>
|
36
36
|
RewriteEngine On
|
37
|
+
RewriteBase /test/
|
37
38
|
RewriteRule ^/test/$ https://test.com/$1 [L,R=301]
|
38
39
|
|
39
40
|
RewriteCond %{HTTPS} !on
|
2
コード間違い修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
|
18
18
|
```htaccess
|
19
19
|
<IfModule mod_rewrite.c>
|
20
|
+
RewriteEngine On
|
20
21
|
RewriteCond %{HTTPS} !on
|
21
22
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
|
22
23
|
RewriteRule ^$ https://www.△△△.com/ [R=301,L]
|
@@ -32,6 +33,7 @@
|
|
32
33
|
|
33
34
|
```htaccess
|
34
35
|
<IfModule mod_rewrite.c>
|
36
|
+
RewriteEngine On
|
35
37
|
RewriteRule ^/test/$ https://test.com/$1 [L,R=301]
|
36
38
|
|
37
39
|
RewriteCond %{HTTPS} !on
|
1
説明の補足
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,8 +5,16 @@
|
|
5
5
|
どのように.hetacessに追記したらいいでしょうか。
|
6
6
|
どなたかご教授お願いします。
|
7
7
|
|
8
|
+
ーーーーーーーーーーーーーーーーーーーーー
|
8
9
|
|
10
|
+
すみません、もう少し説明を補足しますと、
|
11
|
+
これはレンタルサーバーで、「test」フォルダに「test.com」のドメインは設定してありますので、
|
12
|
+
「test.com」のドメインにアクセスしたら「test」フォルダが表示されるはずなんですが、
|
13
|
+
この.htacessが邪魔をしてサーバーエラーが出てしまう状態です。
|
9
14
|
|
15
|
+
ーーーーーーーーーーーーーーーーーーーーーー
|
16
|
+
|
17
|
+
|
10
18
|
```htaccess
|
11
19
|
<IfModule mod_rewrite.c>
|
12
20
|
RewriteCond %{HTTPS} !on
|