{"id":2248,"date":"2017-12-23T00:04:31","date_gmt":"2017-12-22T18:34:31","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=2248"},"modified":"2026-09-14T17:06:37","modified_gmt":"2026-09-14T11:36:37","slug":"wordpress-multisite-domain-setup","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/wordpress-multisite-domain-setup\/","title":{"rendered":"WordPress Multisite Setup and Domain Mapping"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress Multisite allows you to manage multiple websites from a single WordPress installation. This setup is useful when multiple sites need to share the same WordPress core, plugins, and themes while being managed through a centralized network dashboard. This document explains how to enable WordPress Multisite, configure the network settings, enable domain mapping, and add additional sites to the network.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before configuring WordPress Multisite, ensure the following requirements are met:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A working WordPress installation with administrator access.<\/li>\n\n\n\n<li>Access to the WordPress <code>wp-config.php<\/code> and <code>.htaccess<\/code> files.<\/li>\n\n\n\n<li>Access to the WordPress server with appropriate permissions.<\/li>\n\n\n\n<li>A valid domain or subdomain configured in DNS.<\/li>\n\n\n\n<li>A complete backup of the WordPress files and database.<\/li>\n\n\n\n<li>WordPress administrator access to enable Network Setup.<\/li>\n\n\n\n<li>The WPMU DEV Domain Mapping plugin downloaded and installed.<\/li>\n\n\n\n<li>Ensure the required PHP and Apache\/Nginx configuration supports WordPress Multisite.<\/li>\n<\/ol>\n\n\n<h2>Implementation<\/h2>\n<p>In this post, we will explain how to setup multisite in WordPress.<\/p>\n<p><strong>Step 1:<\/strong> Open the wp-config file and copy and paste the following code just above the \u201cThat\u2019s all, stop editing! Happy blogging\u201d comment.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">define('WP_ALLOW_MULTISITE', true);<\/pre>\n<p><strong>Step 2:<\/strong> Open the wp-admin in the browser, go to Tools -&gt; Network Setup, and click Install.<\/p>\n<p><strong>Step 3:<\/strong>\u00a0After click install and you will get, complete the steps to enable the features for creating a network of sites.<\/p>\n<p><strong>Step 4:<\/strong> Add the following to your wp-config.php file in \/var\/www\/html\/ above the line reading \/* That\u2019s all, stop editing! Happy blogging. *\/:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">define('MULTISITE', true);\ndefine('SUBDOMAIN_INSTALL', false);\ndefine('DOMAIN_CURRENT_SITE', 'domain.com');\ndefine('PATH_CURRENT_SITE', '\/');\ndefine('SITE_ID_CURRENT_SITE', 1);\ndefine('BLOG_ID_CURRENT_SITE', 1);<\/pre>\n<p>Step 5: Add the following to your .htaccess file in \/var\/www\/html\/, replacing other WordPress rules:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">RewriteEngine On\nRewriteBase \/\nRewriteRule ^index\\.php$ - [L]\n\n# add a trailing slash to \/wp-admin\nRewriteRule ^([_0-9a-zA-Z-]+\/)?wp-admin$ $1wp-admin\/ [R=301,L]\n\nRewriteCond %{REQUEST_FILENAME} -f [OR]\nRewriteCond %{REQUEST_FILENAME} -d\nRewriteRule ^ - [L]\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(wp-(content|admin|includes).*) $2 [L]\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(.*\\.php)$ $2 [L]\nRewriteRule . index.php [L]<\/pre>\n<p>Step 5: Download the WPMU DEV Domain Mapping Plugin and install it.<\/p>\n<p>Step 6: Open the wp-config file and find the copy-paste the following code just above the \u201cThat\u2019s all, stop editing! Happy blogging\u201d comment.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">define('SUNRISE', 'on' );<\/pre>\n<p>Step 7: Copy the wp-content\/plugins\/domain-mapping\/sunrise.php file to the wp-content folder. Use the following<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cp \/var\/www\/html\/wp-content\/plugins\/domain-mapping\/sunrise.php \/var\/www\/html\/wp-content\/sunrise.php<\/pre>\n<p>Step 8: Go to Sites-&gt;Add new and add the subdomain.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress Multisite has been successfully configured by enabling the network feature, updating the <code>wp-config.php<\/code> and <code>.htaccess<\/code> files, and configuring domain mapping. Additional sites can now be created and managed from the <strong>Network Admin \u2192 Sites<\/strong> section. Always maintain regular backups and verify DNS, SSL, and domain mapping settings when adding new sites to the network.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. What is WordPress Multisite?<\/strong><br>WordPress Multisite allows multiple websites to be managed from a single WordPress installation and centralized dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Can I create multiple websites using one WordPress installation?<\/strong><br>Yes. Once Multisite is enabled, you can create and manage multiple sites from <strong>Network Admin \u2192 Sites \u2192 Add New<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. What is the purpose of <code>WP_ALLOW_MULTISITE<\/code>?<\/strong><br>The <code>WP_ALLOW_MULTISITE<\/code> constant enables the WordPress Multisite\/Network Setup feature.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Articles<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-recaptcha-in-wordpress\/\">How to Install reCAPTCHA in WordPress<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-reset-the-wordpress-password-in-mysql\/\">How to reset the WordPress password in Mysql<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Talk to our experts<strong>:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for the right technology solution for your business?. Our experts can help with\u00a0web hosting, domain registration, DevOps and cloud, software development, web applications, mobile applications, and enterprise solutions. Get in touch with our team <a href=\"https:\/\/pheonixsolutions.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction WordPress Multisite allows you to manage multiple websites from a single WordPress installation. This setup is useful when multiple [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[273,167],"class_list":["post-2248","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-php","tag-wordpress-2","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-Ag","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2248"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2248\/revisions"}],"predecessor-version":[{"id":11761,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2248\/revisions\/11761"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}