{"id":121299,"date":"2018-04-18T09:40:58","date_gmt":"2018-04-18T09:40:58","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=121299"},"modified":"2025-12-09T05:42:03","modified_gmt":"2025-12-09T05:42:03","slug":"multi-website-setup-in-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/","title":{"rendered":"Multi Website Setup in Magento 2"},"content":{"rendered":"<p>In this article, we\u2019ll discuss about the complete process of setting up multiple websites in Magento 2. You\u2019ll learn how to create websites, configure stores and store views, assign domains, and manage all sites from a single <a href=\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\">Magento installation<\/a>.<\/p>\n<p>Magento allows you to setup multi-websites for your single installed Magento. Its configuration is really simple which I&#8217;ll explain later.<\/p>\n<p>It will allow you to create a separate website and the real benefits are you can handle your products, customers, product price and may more things website wise.<\/p>\n<p>You can use these global or website wise depends on your needs.<\/p>\n<p>You must have 2 different domains to setup multi-websites. like- www.magentotest1.com &amp; test.magentotest1.com.<\/p>\n<p>The first thing you need to do is log in to your Magento. Then follow the following steps-<\/p>\n<ol>\n<li>Navigate to<strong> Stores&gt;Settings&gt;All Stores <\/strong>and create a new website than a new store and a new store view. you can use an already created store and store view the main thing you need to create is a new website.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png\"><img decoding=\"async\" class=\"alignnone wp-image-121342 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png\" alt=\"stores\" width=\"1263\" height=\"519\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png 1263w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9-250x103.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9-300x123.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9-768x316.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9-1200x493.png 1200w\" sizes=\"(max-width: 1263px) 100vw, 1263px\" loading=\"lazy\" \/><\/a><\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/2-10.png\"><img decoding=\"async\" class=\"alignnone wp-image-121344 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/2-10.png\" alt=\"stores language\" width=\"1188\" height=\"427\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/2-10.png 1188w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/2-10-250x90.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/2-10-300x108.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/2-10-768x276.png 768w\" sizes=\"(max-width: 1188px) 100vw, 1188px\" loading=\"lazy\" \/><\/a><\/p>\n<p>2. Navigate to<strong> Stores&gt;SettingsConfiguration&gt;General&gt;Web&gt;Base URLs, <\/strong>here Base Url and Base link URL\u00a0fields will be automatically filled.<\/p>\n<p>Navigate to<strong> Stores&gt;SettingsConfiguration&gt;General&gt;Web&gt;Base URLs (Secure), <\/strong>here Base Url and Base link URL\u00a0fields will be automatically filled.<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/3-9.png\"><img decoding=\"async\" class=\"alignnone wp-image-121345 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/3-9.png\" alt=\"Base URl\" width=\"824\" height=\"561\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/3-9.png 824w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/3-9-250x170.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/3-9-300x204.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/3-9-768x523.png 768w\" sizes=\"(max-width: 824px) 100vw, 824px\" loading=\"lazy\" \/><\/a><\/p>\n<p>3. Now you need to update these URLs for your newly created website. You&#8217;ll see a <strong>store view <\/strong>option on the top of the page on the left side. Open this drop-down and select your newly created website.<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/4-8.png\"><img decoding=\"async\" class=\"alignnone wp-image-121346 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/4-8.png\" alt=\"Configuration\" width=\"791\" height=\"435\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/4-8.png 791w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/4-8-250x137.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/4-8-300x165.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/4-8-768x422.png 768w\" sizes=\"(max-width: 791px) 100vw, 791px\" loading=\"lazy\" \/><\/a><\/p>\n<p>4. Now update\u00a0the\u00a0Base URL &amp; Base Link URL fields in Base URLs and\u00a0Base URLs (Secure). Save this configuration now.<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/5-6.png\"><img decoding=\"async\" class=\"alignnone wp-image-121347 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/5-6.png\" alt=\"SEO\" width=\"1099\" height=\"607\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/5-6.png 1099w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/5-6-250x138.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/5-6-300x166.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/5-6-768x424.png 768w\" sizes=\"(max-width: 1099px) 100vw, 1099px\" loading=\"lazy\" \/><\/a><\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/7-4.png\"><img decoding=\"async\" class=\"alignnone wp-image-121353 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/7-4.png\" alt=\"Base URLs(secure)\" width=\"826\" height=\"556\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/7-4.png 826w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/7-4-250x168.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/7-4-300x202.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/7-4-768x517.png 768w\" sizes=\"(max-width: 826px) 100vw, 826px\" loading=\"lazy\" \/><\/a><\/p>\n<p>5. Now you need to open the .htaccess\u00a0file from your Magento\u00a0root directory and search for the &#8220;## enable rewrites&#8221; and add the following lines and save it.<\/p>\n<p>SetEnvIf Host test.magentotest1.com* MAGE_RUN_CODE=french_website<br \/>SetEnvIf Host test.magentotest1.com* MAGE_RUN_TYPE=website<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/6-5.png\"><img decoding=\"async\" class=\"alignnone wp-image-121355 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/6-5.png\" alt=\"Enable rewrites\" width=\"729\" height=\"285\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/6-5.png 729w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/6-5-250x98.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/6-5-300x117.png 300w\" sizes=\"(max-width: 729px) 100vw, 729px\" loading=\"lazy\" \/><\/a><\/p>\n<p>Now you can access both the websites.<\/p>\n<p><span style=\"font-size: large;\"><b><span style=\"text-decoration: underline;\">SERVER CONFIGURATION<\/span>:<\/b><\/span><\/p>\n<p align=\"justify\"><span style=\"font-size: large;\"><b>WildCard DNS Entry With Apache and Nginx Web Servers for Global :<\/b><\/span><\/p>\n<p align=\"justify\">In order to create a wildcard domain for global access, we need to create wildcard entry (A entry in our case) for domains on DNS server ex: *.example.com or *.test.example.com along with the base domain entry (example.com).<\/p>\n<p align=\"justify\">So that it will recognize all the traffic for DNS i.e. test.example.com with *.test.example.com and route it configured the domain.<\/p>\n<p align=\"justify\"><span style=\"font-size: medium;\"><b>WildCard Entry with Apache Web Server:<\/b><\/span><\/p>\n<p align=\"justify\">For the same with an apache web server, we need to configure on apache config file inside <b>\/etc\/apache2\/sites-available\/000-default.conf<\/b><\/p>\n<p>&lt;VirtualHost *:80&gt;<\/p>\n<p>#ServerName www.example.com<\/p>\n<p>ServerAdmin webmaster@localhost<\/p>\n<p>DocumentRoot \/var\/www\/html<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<p align=\"justify\">Edit above, uncomment ServerName and replace your required domain name with <a href=\"http:\/\/www.example.com\/\">www.example.com<\/a> and add ServerAlias with *.domain name as below:<\/p>\n<p>&lt;VirtualHost *:80&gt;<\/p>\n<p>ServerName <b>test.webkul.com<\/b><\/p>\n<p>ServerAlias <b>*.test.webkul.com<\/b><\/p>\n<p>ServerAdmin webmaster@localhost<\/p>\n<p>DocumentRoot \/var\/www\/html<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<p><b>WildCard Entry with Nginx Web Server:<\/b><\/p>\n<p align=\"justify\">With nginx, we need to change in nginx config file within server configuration i.e. in <b>\/etc\/nginx\/sites-available\/default<\/b><\/p>\n<p>server {<\/p>\n<p>listen 80 default_server;<\/p>\n<p>listen [::]:80 default_server;<\/p>\n<p>&#8230;<\/p>\n<p>root \/var\/www\/html;<\/p>\n<p># Add index.php to the list if you are using PHP<\/p>\n<p>index index.html index.htm index.nginx-debian.html;<\/p>\n<p>server_name _;<\/p>\n<p>&#8230;<\/p>\n<p>}<\/p>\n<p>here, replace underscore (_) with domain_name and *.domain_name as:<\/p>\n<p>server {<\/p>\n<p>listen 80 default_server;<\/p>\n<p>listen [::]:80 default_server;<\/p>\n<p>&#8230;<\/p>\n<p>root \/var\/www\/html;<\/p>\n<p># Add index.php to the list if you are using PHP<\/p>\n<p>index index.html index.htm index.nginx-debian.html;<\/p>\n<p>server_name <b>test.webkul.com *.test.webkul.com<\/b>;<\/p>\n<p>&#8230;<\/p>\n<p>}<\/p>\n<p>If you are looking for a quick Magento 2 installation? Please visit our blog\u00a0<a href=\"https:\/\/webkul.com\/blog\/write-your-own-shell-bash-script-to-install-magento-2\/\"><strong>Shell\/Bash Script to Install Magento 2<\/strong><\/a><\/p>\n<p>Hope it will help you. Still, have any doubt then please leave a comment here.<\/p>\n<p>Thanks! \ud83d\ude42<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we\u2019ll discuss about the complete process of setting up multiple websites in Magento 2. You\u2019ll learn how to create websites, configure stores and store views, assign domains, and manage all sites from a single Magento installation. Magento allows you to setup multi-websites for your single installed Magento. Its configuration is really simple <a href=\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":66,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[6558,2460,2070,6556,6557],"class_list":["post-121299","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-configure","tag-magento-2","tag-magento2","tag-multi-website","tag-setup"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Multi Website Setup in Magento 2<\/title>\n<meta name=\"description\" content=\"In this article, we\u2019ll discuss about the complete process of setting up multiple websites in Magento 2.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multi Website Setup in Magento 2\" \/>\n<meta property=\"og:description\" content=\"In this article, we\u2019ll discuss about the complete process of setting up multiple websites in Magento 2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-18T09:40:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-09T05:42:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png\" \/>\n<meta name=\"author\" content=\"Shruti Baranwal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shruti Baranwal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/\"},\"author\":{\"name\":\"Shruti Baranwal\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d90db6dde51254f8d7bda2539b81386e\"},\"headline\":\"Multi Website Setup in Magento 2\",\"datePublished\":\"2018-04-18T09:40:58+00:00\",\"dateModified\":\"2025-12-09T05:42:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/\"},\"wordCount\":649,\"commentCount\":13,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png\",\"keywords\":[\"configure\",\"Magento 2\",\"Magento2\",\"multi-website\",\"setup\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/\",\"name\":\"Multi Website Setup in Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png\",\"datePublished\":\"2018-04-18T09:40:58+00:00\",\"dateModified\":\"2025-12-09T05:42:03+00:00\",\"description\":\"In this article, we\u2019ll discuss about the complete process of setting up multiple websites in Magento 2.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png\",\"width\":\"1263\",\"height\":\"519\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Multi Website Setup in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d90db6dde51254f8d7bda2539b81386e\",\"name\":\"Shruti Baranwal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2ecd6b094113b3e2f346229e04e90fcb6e242f28b3a1dbcb2f44fd9eefb93dbc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2ecd6b094113b3e2f346229e04e90fcb6e242f28b3a1dbcb2f44fd9eefb93dbc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Shruti Baranwal\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/shruti-baranwal890\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Multi Website Setup in Magento 2","description":"In this article, we\u2019ll discuss about the complete process of setting up multiple websites in Magento 2.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Multi Website Setup in Magento 2","og_description":"In this article, we\u2019ll discuss about the complete process of setting up multiple websites in Magento 2.","og_url":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-04-18T09:40:58+00:00","article_modified_time":"2025-12-09T05:42:03+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png","type":"","width":"","height":""}],"author":"Shruti Baranwal","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Shruti Baranwal","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/"},"author":{"name":"Shruti Baranwal","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d90db6dde51254f8d7bda2539b81386e"},"headline":"Multi Website Setup in Magento 2","datePublished":"2018-04-18T09:40:58+00:00","dateModified":"2025-12-09T05:42:03+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/"},"wordCount":649,"commentCount":13,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png","keywords":["configure","Magento 2","Magento2","multi-website","setup"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/","url":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/","name":"Multi Website Setup in Magento 2","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png","datePublished":"2018-04-18T09:40:58+00:00","dateModified":"2025-12-09T05:42:03+00:00","description":"In this article, we\u2019ll discuss about the complete process of setting up multiple websites in Magento 2.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/04\/1-9.png","width":"1263","height":"519"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/multi-website-setup-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Multi Website Setup in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d90db6dde51254f8d7bda2539b81386e","name":"Shruti Baranwal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2ecd6b094113b3e2f346229e04e90fcb6e242f28b3a1dbcb2f44fd9eefb93dbc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2ecd6b094113b3e2f346229e04e90fcb6e242f28b3a1dbcb2f44fd9eefb93dbc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Shruti Baranwal"},"url":"https:\/\/webkul.com\/blog\/author\/shruti-baranwal890\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/121299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=121299"}],"version-history":[{"count":9,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/121299\/revisions"}],"predecessor-version":[{"id":515942,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/121299\/revisions\/515942"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=121299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=121299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=121299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}