質問編集履歴

2

旧ドメインから新ドメインへの変更内容を記載

2018/11/12 09:33

投稿

lowe.sign
lowe.sign

スコア19

test CHANGED
File without changes
test CHANGED
@@ -42,6 +42,10 @@
42
42
 
43
43
 
44
44
 
45
+ ドメイン例)sample.tokyo ⇒ sample.co.jp へドメイン変更となりました。
46
+
47
+
48
+
45
49
  ```ここに言語名を入力
46
50
 
47
51
  <IfModule mod_rewrite.c>

1

.htaccessについて更新

2018/11/12 09:33

投稿

lowe.sign
lowe.sign

スコア19

test CHANGED
@@ -1 +1 @@
1
- 【.htaccess】301リダイレクト設定すると500エラーなる件について
1
+ e【.htaccess】301リダイレクト設定方法について
test CHANGED
@@ -32,15 +32,25 @@
32
32
 
33
33
  ### .htaccess
34
34
 
35
+ index.htmlと同階層に.htaccessを作成
36
+
37
+
38
+
39
+ 旧サイト(index.html)から、
40
+
35
- (旧ドメインの)index.htmlというディレクリ ⇒ https://sample.co.jp/ へリダイレクトしたい。
41
+ 新しく構築したWordPressサイhttps://sample.co.jp)301リダイレクトしたい。
36
42
 
37
43
 
38
44
 
39
45
  ```ここに言語名を入力
40
46
 
47
+ <IfModule mod_rewrite.c>
48
+
41
49
  RewriteEngine on
42
50
 
43
- RewriteRule ^index.html$ https://sample.co.jp/ [L,R=301]
51
+ RewriteRule ^index.html$ https://sample.co.jp/ [R=301,L]
52
+
53
+ </IfModule>
44
54
 
45
55
  ```
46
56