質問編集履歴
2
.htaccess全文を追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -50,7 +50,48 @@
|
|
50
50
|
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
|
51
51
|
RewriteRule . index.php [L]
|
52
52
|
```
|
53
|
+
.htaccessの全文
|
54
|
+
```
|
55
|
+
# BEGIN Redirect to https
|
56
|
+
<IfModule mod_rewrite.c>
|
57
|
+
RewriteEngine On
|
58
|
+
RewriteCond %{ENV:HTTPS} !on
|
59
|
+
RewriteCond %{HTTP:X-Forwarded-Proto} http
|
60
|
+
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
61
|
+
</IfModule>
|
62
|
+
# END Redirect to https
|
53
63
|
|
64
|
+
|
65
|
+
# BEGIN WordPress
|
66
|
+
<IfModule mod_rewrite.c>
|
67
|
+
RewriteEngine On
|
68
|
+
RewriteBase /
|
69
|
+
RewriteRule ^index.php$ - [L]
|
70
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
71
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
72
|
+
RewriteRule . /index.php [L]
|
73
|
+
</IfModule>
|
74
|
+
|
75
|
+
# END WordPress
|
76
|
+
|
77
|
+
RewriteEngine On
|
78
|
+
RewriteBase /
|
79
|
+
RewriteRule ^index.php$ - [L]
|
80
|
+
|
81
|
+
# add a trailing slash to /wp-admin
|
82
|
+
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
|
83
|
+
|
84
|
+
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
85
|
+
RewriteCond %{REQUEST_FILENAME} -d
|
86
|
+
RewriteRule ^ - [L]
|
87
|
+
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
|
88
|
+
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
|
89
|
+
RewriteRule . index.php [L]
|
90
|
+
|
91
|
+
SetEnvIf Request_URI ".*" WpCommentDeny
|
92
|
+
|
93
|
+
```
|
94
|
+
|
54
95
|
### 試したこと
|
55
96
|
|
56
97
|
wp-config.phpに
|
1
親ページはログインも閲覧もできる。
title
CHANGED
File without changes
|
body
CHANGED
@@ -62,5 +62,7 @@
|
|
62
62
|
|
63
63
|
キャッシュクリアをしたが変化なし。
|
64
64
|
|
65
|
+
親ページはログインも閲覧もできる。
|
66
|
+
|
65
67
|
もしお分かりであれば、教えていただけると幸いです。
|
66
68
|
よろしくお願いいたします。
|