質問編集履歴
4
コード部分修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
以下の様なコードでいけると思っていたのですが上手く行きません。
|
14
14
|
|
15
|
-
|
15
|
+
```
|
16
16
|
|
17
17
|
# BEGIN WordPress
|
18
18
|
|
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
RewriteRule ^(.*)\.html$ /$1 [R=301,L]
|
48
48
|
|
49
|
-
|
49
|
+
```
|
50
50
|
|
51
51
|
|
52
52
|
|
3
\.htaccess内容変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
以下の様なコードでいけると思っていたのですが上手く行きません。
|
14
14
|
|
15
|
-
|
15
|
+
|
16
16
|
|
17
17
|
# BEGIN WordPress
|
18
18
|
|
@@ -46,6 +46,8 @@
|
|
46
46
|
|
47
47
|
RewriteRule ^(.*)\.html$ /$1 [R=301,L]
|
48
48
|
|
49
|
-
|
49
|
+
|
50
|
+
|
51
|
+
|
50
52
|
|
51
53
|
詳しい方、ご教授お願い致します。
|
2
\.htaccess全文
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,8 +12,40 @@
|
|
12
12
|
|
13
13
|
以下の様なコードでいけると思っていたのですが上手く行きません。
|
14
14
|
|
15
|
+
----------------------------------------
|
16
|
+
|
17
|
+
# BEGIN WordPress
|
18
|
+
|
19
|
+
<IfModule mod_rewrite.c>
|
20
|
+
|
21
|
+
RewriteEngine On
|
22
|
+
|
23
|
+
RewriteBase /wp/
|
24
|
+
|
25
|
+
RewriteRule ^index\.php$ - [L]
|
26
|
+
|
27
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
28
|
+
|
29
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
30
|
+
|
15
|
-
RewriteRule
|
31
|
+
RewriteRule . /wp/index.php [L]
|
32
|
+
|
33
|
+
</IfModule>
|
16
34
|
|
17
35
|
|
18
36
|
|
37
|
+
# END WordPress
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
RewriteEngine on
|
42
|
+
|
43
|
+
RewriteBase /
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
RewriteRule ^(.*)\.html$ /$1 [R=301,L]
|
48
|
+
|
49
|
+
----------------------------------------
|
50
|
+
|
19
51
|
詳しい方、ご教授お願い致します。
|
1
事例のドメイン修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
具体的には以下のように旧URLから拡張子を削除した新URLにリダイレクトさせたいです。
|
8
8
|
|
9
|
-
例)http://
|
9
|
+
例)http://example.com/category/aaa.html -> http://example.com/category/aaa
|
10
10
|
|
11
11
|
|
12
12
|
|