質問編集履歴

2

.htaccess全文を追記

2019/01/10 09:44

投稿

tatsuo11
tatsuo11

スコア13

test CHANGED
File without changes
test CHANGED
@@ -102,6 +102,88 @@
102
102
 
103
103
  ```
104
104
 
105
+ .htaccessの全文
106
+
107
+ ```
108
+
109
+ # BEGIN Redirect to https
110
+
111
+ <IfModule mod_rewrite.c>
112
+
113
+ RewriteEngine On
114
+
115
+ RewriteCond %{ENV:HTTPS} !on
116
+
117
+ RewriteCond %{HTTP:X-Forwarded-Proto} http
118
+
119
+ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
120
+
121
+ </IfModule>
122
+
123
+ # END Redirect to https
124
+
125
+
126
+
127
+
128
+
129
+ # BEGIN WordPress
130
+
131
+ <IfModule mod_rewrite.c>
132
+
133
+ RewriteEngine On
134
+
135
+ RewriteBase /
136
+
137
+ RewriteRule ^index.php$ - [L]
138
+
139
+ RewriteCond %{REQUEST_FILENAME} !-f
140
+
141
+ RewriteCond %{REQUEST_FILENAME} !-d
142
+
143
+ RewriteRule . /index.php [L]
144
+
145
+ </IfModule>
146
+
147
+
148
+
149
+ # END WordPress
150
+
151
+
152
+
153
+ RewriteEngine On
154
+
155
+ RewriteBase /
156
+
157
+ RewriteRule ^index.php$ - [L]
158
+
159
+
160
+
161
+ # add a trailing slash to /wp-admin
162
+
163
+ RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
164
+
165
+
166
+
167
+ RewriteCond %{REQUEST_FILENAME} -f [OR]
168
+
169
+ RewriteCond %{REQUEST_FILENAME} -d
170
+
171
+ RewriteRule ^ - [L]
172
+
173
+ RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
174
+
175
+ RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
176
+
177
+ RewriteRule . index.php [L]
178
+
179
+
180
+
181
+ SetEnvIf Request_URI ".*" WpCommentDeny
182
+
183
+
184
+
185
+ ```
186
+
105
187
 
106
188
 
107
189
  ### 試したこと

1

親ページはログインも閲覧もできる。

2019/01/10 09:44

投稿

tatsuo11
tatsuo11

スコア13

test CHANGED
File without changes
test CHANGED
@@ -126,6 +126,10 @@
126
126
 
127
127
 
128
128
 
129
+ 親ページはログインも閲覧もできる。
130
+
131
+
132
+
129
133
  もしお分かりであれば、教えていただけると幸いです。
130
134
 
131
135
  よろしくお願いいたします。