{"id":913,"date":"2021-02-17T11:17:26","date_gmt":"2021-02-17T11:17:26","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=913"},"modified":"2021-05-18T13:21:03","modified_gmt":"2021-05-18T13:21:03","slug":"setup-plesk-multi-store-setup-in-magento","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/","title":{"rendered":"How to Setup Plesk Multi Store Setup in Magento?"},"content":{"rendered":"<p>We have setup the main domain in store (store 1) and we need to setup new domains along with its stores.<\/p>\n<p>The following steps shows how to setup domains along with its stores.<\/p>\n<p><strong>Step 1<\/strong>: Log in to the <a href=\"https:\/\/www.velaninfo.com\/digital-commerce-services\"><strong>Magento<\/strong><\/a> Administrative interface and go to System &gt; Manage Stores.<\/p>\n<p><strong>Step 2<\/strong>: Add your new website name, store name and store view name. While creating the stores, you have an option to select the \u2018Category\u2019 option which will use the same category structure as the main domain or you can create a new category by going to Catalog &gt; Manage Categories and create a new root category.<\/p>\n<p><strong>Step 3<\/strong>: Assign the new domains for each store. Go to System &gt; Configuration &gt; GENERAL &gt; Web and then select your second store from the \u2018Current Configuration Scope\u2019 of the left hand side drop down box.<\/p>\n<p>Select the newly created domain, open \u201cUnsecure\u201d from the right hand side and in the \u201cBase URL\u201d field, enter the new domain name, for eg: www.xyz.com\/. Repeat the same for the \u201cSecure\u201d section too.<\/p>\n<p><strong>Step 4<\/strong>: Click on System &gt; Configuration &gt; GENERAL &gt; Design, select the store from the \u2018Current configuration scope\u2019 and open up \u2018Package\u2019, you can set the theme for the domain from here.<\/p>\n<p>Now, you need to login into your Plesk panel and simply create the second domain as an Alias for the main domain, in this case that would be \u201cwww.xyz.com\u201d as an Alias for \u201cwww.xyz.com\u201d<\/p>\n<p>While adding, you would see that there is option to select\u00a0 Mail , DNS &amp; Redirect option we can choose as required.<\/p>\n<p>Once the above steps is done, open up the \u201cindex.php\u201d file and edit the following section as follows:<\/p>\n<p><em>umask(0);if ($_SERVER[&#8216;HTTP_HOST&#8217;] == &#8220;xyz.com&#8221; || $_SERVER[&#8216;HTTP_HOST&#8217;] == &#8220;www.xyz.com&#8221;){<\/em><\/p>\n<p><em>$_SERVER[&#8220;MAGE_RUN_CODE&#8221;] = &#8220;website_code&#8221;;<\/em><\/p>\n<p><em>$_SERVER[&#8220;MAGE_RUN_TYPE&#8221;] = &#8220;website&#8221;;<\/em><\/p>\n<p><em>}\/* Store or website code *\/<\/em><\/p>\n<p><em>$mageRunCode = isset($_SERVER[&#8216;MAGE_RUN_CODE&#8217;]) ? $_SERVER[&#8216;MAGE_RUN_CODE&#8217;] : &#8221;;\/* Run store or run website *\/<\/em><\/p>\n<p><em>$mageRunType = isset($_SERVER[&#8216;MAGE_RUN_TYPE&#8217;]) ? $_SERVER[&#8216;MAGE_RUN_TYPE&#8217;] : &#8216;store&#8217;;Mage::run($mageRunCode, $mageRunType);<\/em><\/p>\n<p>Replace the \u201cstore\u201d with the store name we had given earlier. Repeat the same for the third domain that is \u201cwww.xyz.com\u201d. Now you will be able to manage the three stores and the three domains from the same control panel.<\/p>\n<p>At Velan, our server support engineers can help you setup up multiple stores in Mangeto. We troubleshoot problems like these for our clients every day.\u00a0If you are interested in our service, please fill the <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>Quick connect<\/strong><\/a> form to get in touch with us<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have setup the main domain in store (store 1) and we need to setup new domains along with its stores. The following steps shows how to setup domains along with its stores. Step 1: Log in to the Magento Administrative interface and go to System &gt; Manage Stores. Step 2: Add your new website&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-913","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-application","Categories_tech_tip-magento"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Setup Plesk Multi Store Setup in Magento | Velan<\/title>\n<meta name=\"description\" content=\"Steps to setup Plesk Multi Store Setup in Magento\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Setup Plesk Multi Store Setup in Magento?\" \/>\n<meta property=\"og:description\" content=\"Steps to setup Plesk Multi Store Setup in Magento\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-18T13:21:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/setup-plesk-multi-store-setup-in-magento\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/setup-plesk-multi-store-setup-in-magento\\\/\",\"name\":\"How to Setup Plesk Multi Store Setup in Magento | Velan\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"datePublished\":\"2021-02-17T11:17:26+00:00\",\"dateModified\":\"2021-05-18T13:21:03+00:00\",\"description\":\"Steps to setup Plesk Multi Store Setup in Magento\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/setup-plesk-multi-store-setup-in-magento\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/setup-plesk-multi-store-setup-in-magento\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/setup-plesk-multi-store-setup-in-magento\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Setup Plesk Multi Store Setup in Magento?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Setup Plesk Multi Store Setup in Magento | Velan","description":"Steps to setup Plesk Multi Store Setup in Magento","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:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/","og_locale":"en_US","og_type":"article","og_title":"How to Setup Plesk Multi Store Setup in Magento?","og_description":"Steps to setup Plesk Multi Store Setup in Magento","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/","og_site_name":"Velan","article_modified_time":"2021-05-18T13:21:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/","name":"How to Setup Plesk Multi Store Setup in Magento | Velan","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2021-02-17T11:17:26+00:00","dateModified":"2021-05-18T13:21:03+00:00","description":"Steps to setup Plesk Multi Store Setup in Magento","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/setup-plesk-multi-store-setup-in-magento\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to Setup Plesk Multi Store Setup in Magento?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=913"}],"version-history":[{"count":4,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/913\/revisions"}],"predecessor-version":[{"id":1062,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/913\/revisions\/1062"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=913"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}