Multisite subfolders – can't access URLs containing wp-content on subsites
-
Hi All,
I migrated an existing WordPress install to Multisite using subfolders.– The wordpress is installed in /wp/
– The main site is accessible from https://www.ikeaddict.com and for SEO purpose, it redirects to https://www.ikeaddict.com/la-communaute-des-ikea-addicts
– My admin panel is accessible to https://www.ikeaddict.com/wp/wp-admin/So the mainsite and the admin panel work perfectly !
– One subsite I created for testint purpose is at the following address, which is what I want :
https://www.ikeaddict.com/la-communaute-des-ikea-addicts/new/The problem is that all addresses that contain wp-content (and probably wp-includes, wp-admin) redirect to the main website instead of distributing the right file.
See an example :
https://www.ikeaddict.com/la-communaute-des-ikea-addicts/new/wp-content/themes/twentytwelve/style.cssSo here is my wp-config.php :
/* Multisite */ define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); //$base = '/'; define('DOMAIN_CURRENT_SITE', 'www.ikeaddict.com'); define('PATH_CURRENT_SITE', '/la-communaute-des-ikea-addicts/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
And the .htaccess which resides in / :
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).*) wp/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wp/$2 [L] RewriteRule . index.php [L]
Do you have an idea on what is going wrong with this configuration ?
Thank you for your help,Best regards,
Looic.
- The topic ‘Multisite subfolders – can't access URLs containing wp-content on subsites’ is closed to new replies.