Wordpress Multisite sites do not show CSS and images

Created:

2017-07-04 19:52:23 UTC

Modified:

2017-08-16 16:51:18 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Wordpress Multisite sites do not show CSS and images

Applicable to:

  • Plesk Onyx

Symptoms

  • No media content (CSS and images) is shown on sub-sites.
  • When opening wp-admin page, it fails with the error:
    Too many redirects

Cause

Incorrect .htaccess directives specified for the main site.

Resolution

Use the following directives:

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]

For more information, refer to the following article: https://codex.wordpress.org/Create_A_Network

Have more questions? Submit a request
Please sign in to leave a comment.