Hello,
Trying to get a WordPress Multsite installation with Sub-directories setup. Using wordpress 5.4.1, ubuntu 20.04, OLS 1.6.13, Digital Ocean droplet
The main site loads everything correctly, but the subsites do not load the CSS or the JS assets.
note: the online reference here: https://openlitespeed.org/mediawiki/index.php/How_to_setup_a_wordpress_multisite_network
Has a slightly different format for 3 of the directives, adding a slash to rewriterule 3,4 & 5. I tried this and it results in a "page not redirecting properly" error and the wp-admin won't load at all
Is this setup correct? or are others experiencing the same?
Any help is appreciated, thanks!
Colby
HTACCESS
-----------------
# BEGIN LSCACHE
# END LSCACHE
# BEGIN NON_LSCACHE
# END NON_LSCACHE
### Forcing HTTPS rule start
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
### Forcing HTTPS rule end
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
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]
</IfModule>
# END WordPress
------------------------------------
Relevant wp-config
---------------------------
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'domain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
Trying to get a WordPress Multsite installation with Sub-directories setup. Using wordpress 5.4.1, ubuntu 20.04, OLS 1.6.13, Digital Ocean droplet
The main site loads everything correctly, but the subsites do not load the CSS or the JS assets.
note: the online reference here: https://openlitespeed.org/mediawiki/index.php/How_to_setup_a_wordpress_multisite_network
Has a slightly different format for 3 of the directives, adding a slash to rewriterule 3,4 & 5. I tried this and it results in a "page not redirecting properly" error and the wp-admin won't load at all
Is this setup correct? or are others experiencing the same?
Any help is appreciated, thanks!
Colby
HTACCESS
-----------------
# BEGIN LSCACHE
# END LSCACHE
# BEGIN NON_LSCACHE
# END NON_LSCACHE
### Forcing HTTPS rule start
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
### Forcing HTTPS rule end
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
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]
</IfModule>
# END WordPress
------------------------------------
Relevant wp-config
---------------------------
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'domain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);