I've set up a subfolder multisite. Main site: / Subdomain site:
You see the maintenance screen is well displayed on the main site, but not on the subdomain site.
All the themes and plugin files lead to a 404.
For example, cs-amx/chypre/wp-content/plugins/maintenance/load/style.css doesn't load.
But cs-amx/wp-content/plugins/maintenance/load/style.css works well.
The admin panel at cs-amx/chypre/wp-admin/ works, though.
Here's the content of the .htaccess file:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# END WordPress
Any idea?
I've set up a subfolder multisite. Main site: https://cs-amx/ Subdomain site: https://cs-amx/chypre
You see the maintenance screen is well displayed on the main site, but not on the subdomain site.
All the themes and plugin files lead to a 404.
For example, cs-amx/chypre/wp-content/plugins/maintenance/load/style.css doesn't load.
But cs-amx/wp-content/plugins/maintenance/load/style.css works well.
The admin panel at cs-amx/chypre/wp-admin/ works, though.
Here's the content of the .htaccess file:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# END WordPress
Any idea?
Share Improve this question asked Mar 29, 2017 at 11:16 Gaston FlanchardGaston Flanchard 1431 silver badge5 bronze badges2 Answers
Reset to default 2The .htaccess looks fine. It is exactly like the one I have. Do you have any .htaccess files inside /wp-content/ or /wp-includes/ or one level up from the main site folder?
Also try deactivating all plugins.
I also found this topic that seems to be for the same issue. From what I read, there was a situation caused by hosting security measure in which the .htaccess file was not used and it was needed to do changes in the apps/wordpress/conf/http-app.conf file. This is the exact post I am talking about.
I had a very similar issue to you.
In my case, my server was running apache and nginx. Nginx was serving static files, which meant the .htaccess was ignored for the stylesheets and js files etc. All of the admin areas worked great.
I got in touch with my hosting company who were able to disable the nginx static file hosting and that immediately sorted the issue.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744983817a4604493.html
评论列表(0条)