質問編集履歴

1

htaccessの内容を追記いたしました。

2021/01/16 11:11

投稿

yenomoto
yenomoto

スコア14

test CHANGED
File without changes
test CHANGED
@@ -97,3 +97,43 @@
97
97
 
98
98
 
99
99
  以上、よろしくお願い申し上げます。
100
+
101
+
102
+
103
+ ※htaccessの内容を追記させていただきます。
104
+
105
+ --------------------------------------------------------
106
+
107
+ RewriteEngine On
108
+
109
+ RewriteBase /wordpress/
110
+
111
+ RewriteRule ^index.php$ - [L]
112
+
113
+
114
+
115
+ # uploaded files
116
+
117
+ RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
118
+
119
+
120
+
121
+ # add a trailing slash to /wp-admin
122
+
123
+ RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
124
+
125
+
126
+
127
+ RewriteCond %{REQUEST_FILENAME} -f [OR]
128
+
129
+ RewriteCond %{REQUEST_FILENAME} -d
130
+
131
+ RewriteRule ^ - [L]
132
+
133
+ RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
134
+
135
+ RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
136
+
137
+ RewriteRule . index.php [L]
138
+
139
+ --------------------------------------------------------------