質問編集履歴
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,20 +14,23 @@
|
|
14
14
|
wordpressの方の.httaccesでは、下記の様に書くとサイトが表示されなくなります。
|
15
15
|
|
16
16
|
```
|
17
|
-
<IfModule mod_rewrite.c>
|
18
|
-
RewriteEngine On
|
19
|
-
RewriteBase /
|
20
17
|
RewriteCond %{HTTPS} off
|
21
18
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
|
22
|
-
|
19
|
+
|
23
|
-
|
24
|
-
# BEGIN WordPress
|
25
|
-
<IfModule mod_rewrite.c>
|
26
20
|
RewriteEngine On
|
27
|
-
RewriteBase /
|
21
|
+
RewriteBase /wordpress/
|
28
22
|
RewriteRule ^index.php$ - [L]
|
23
|
+
|
24
|
+
# add a trailing slash to /wp-admin
|
25
|
+
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
|
26
|
+
|
29
|
-
RewriteCond %{REQUEST_FILENAME}
|
27
|
+
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
30
|
-
RewriteCond %{REQUEST_FILENAME}
|
28
|
+
RewriteCond %{REQUEST_FILENAME} -d
|
29
|
+
RewriteRule ^ - [L]
|
30
|
+
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) wp/$2 [L]
|
31
|
+
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ wp/$2 [L]
|
31
|
-
RewriteRule .
|
32
|
+
RewriteRule . index.php [L]
|
33
|
+
|
32
34
|
</IfModule>
|
35
|
+
|
33
36
|
```
|
1
説明追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
RewriteEngine On
|
8
8
|
RewriteCond %{HTTP:X-Forwarded-Port} !^443$
|
9
9
|
RewriteCond %{HTTP_USER_AGENT} !^ELB-HealthChecker
|
10
|
-
RewriteRule ^(.*)$ https://
|
10
|
+
RewriteRule ^(.*)$ https://templates.com%{REQUEST_URI} [R=301,L]
|
11
11
|
```
|
12
12
|
|
13
13
|
|