Wp core multisite-convert (WP-CLI)
Naar navigatie springen
Naar zoeken springen
NAME wp core multisite-convert DESCRIPTION Transforms an existing single-site installation into a multisite installation. SYNOPSIS wp core multisite-convert [--title=<network-title>] [--base=<url-path>] [--subdomains] ALIAS install-network Creates the multisite database tables, and adds the multisite constants to wp-config.php. For those using WordPress with Apache, remember to update the `.htaccess` file with the appropriate multisite rewrite rules. [Review the multisite documentation][1] for more details about how multisite works. --- [1] https://codex.wordpress.org/Create_A_Network OPTIONS [--title=<network-title>] The title of the new network. [--base=<url-path>] Base path after the domain name that each site url will start with. --- default: / --- [--subdomains] If passed, the network will use subdomains, instead of subdirectories. Doesn't work with 'localhost'. EXAMPLES $ wp core multisite-convert Set up multisite database tables. Added multisite constants to wp-config.php. Success: Network installed. Don't forget to set up rewrite rules.