Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
Last active August 29, 2015 14:09
Show Gist options
  • Save jennimckinnon/f3049118e8564cb8197d to your computer and use it in GitHub Desktop.
Save jennimckinnon/f3049118e8564cb8197d to your computer and use it in GitHub Desktop.
This is the code to add to the wp-config.php file to enable WordPress multisite as sub-domains
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'yourdomain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment