mardi 28 juin 2016

Wordpress Multisite Sub-directory Setup Problems

Wordpress Multisite Sub-directory Setup Problems

Hi everyone! I have a problem with a loading styles, scripts and images files for sites in a multisite network.

They all are loaded by incorrect urls as you can see in attachments. I've setted up my network by wordpress instructions, and there are how my .htaccess and wp-config look like:

.htaccess

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]

wp-config.php

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'wp-testing6');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Wordpress loads file, for example, using this url

http:// wp-testing6/test1/wp-content/themes/twentysixteen/style.css

but this style stores here

http:// wp-testing6/wp-content/themes/twentysixteen/style.css

my screenshot

So, if you know how to fix that problem let me know please!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire