Phone technical support +39 0575 0505

2.5.3 WordPress: Enabling Multisite in an already enabled installation

To enable Multisite in an already enabled installation:
  1. Go to the FTP area of the domain in the folder containing the installation (wordpress_site) and download the wp-config.php file locally. Edit the file by entering after the line /* That's all, stop editing! Happy blogging. */ or /* That's all, stop editing! Happy blogging. */:
    define('WP_ALLOW_MULTISITE',true);
  2. Save and close the file and retransfer it to the FTP area of the domain via an FTP client, (e.g. FileZilla);
  3. Log into your WordPress dashboard;
  4. Select "Tools > Network Setup" from the left-side menu;
  5. Enter the "Network Title" and "Network Admin Email";
  6. Click "Install" to proceed:

  7. Copy the instructions provided by WordPress after enabling the Multisite, as in the screenshot below:

  8. To copy the settings, as specified in the previous step of this guide, go to the FTP area of the domain the folder containing the installation (wordpress_site) and download the wp-config.php file and the .htaccess file locally.
  9. After completing the procedures, from the WordPress Dashboard, you can manage the network sites and add new ones in "My sites > Manage Network > Sites"

Only if the copying procedure described above cannot be carried out, edit the wp-config.php file and the .htaccess file as follows:

Changes to make to the wp-config.php file

Enter after the line:
/* That's all, stop editing! Happy blogging. */ or /* That's all, stop editing! Happy blogging.
If installation is in the root:
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'www.dominio.ext');
define('PATH_CURRENT_SITE', '/ ');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

If the installation is in a subdirectory:
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'www.dominio.ext');
define('PATH_CURRENT_SITE', '/nomecartella/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Changes to make to the .htaccess file

If installation is in the root:
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]


If the installation is in a subdirectory:
RewriteEngine On
RewriteBase /nomecartella/
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]

 
 
La tua opinione è importante per noi!
 

Non hai trovato quello che cerchi?

Contatta i nostri esperti, sono a tua disposizione.