Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7558175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:18:18+00:00 2026-05-30T12:18:18+00:00

I am trying to get a magento installation to run multiple websites I have

  • 0

I am trying to get a magento installation to run multiple websites I have completed most of the steps including a parked domain. However I am unsure as to how to answer the statement below:

Easiest amongst these is .htaccess solution which requires you to define the following lines:

SetEnvIf Host .*myhost.* MAGE_RUN_CODE="base";
SetEnvIf Host .*myhost.* MAGE_RUN_TYPE="website";

Simply ensure that .myhost. is a regex expression matching the domain for which you want to set environmental variables for.

For example do my website is http://www.domain.com and also http://www.domain1.com, magento is installed on domain.com so for the host do I put .domain.com. and leave the run code and type and base and website

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:18:20+00:00Added an answer on May 30, 2026 at 12:18 pm

    What you are supposed to change is the MAGE_RUN_CODE to match the code of the site that is managed in the Magento backend. You also need to change the myhost bit match the domain name of your site.

    So for example, if your site is hosted on somewebsite.com and you have two “stores” (Store View A and Store View B, Where “ViewA” is Store View A and “ViewB” is Store View B.)

    You would write the following:

    SetEnvIf Host .*somewebsite.* MAGE_RUN_CODE=ViewA
    SetEnvIf Host .*somewebsite.* MAGE_RUN_TYPE=website
    
    SetEnvIf Host .*somewebsite.* MAGE_RUN_CODE=ViewB
    SetEnvIf Host .*somewebsite.* MAGE_RUN_TYPE=website
    

    This assuming you made two different “Sites” in the Magento Backend. If you made a different store, you’d replace “website” with store.

    More reading on the Magento renaming can be found here:

    http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/multiple-website-setup

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently trying to get onepage checkout working properly on an installation of Magento 1.6.0.0.
I have been trying for a while to get working the Mule's Magento Cloud
Magento 1.6.1 I am trying to get form data on my observer. I tried
Trying to get comfortable with jQuery and I have encountered some sample code that
I have a problem with a magento installation. I used Magento ver. 1.5.0.1, community
I'm trying to get a list of uncategorized products in Magento. This is not
I ask this question, since I am trying to get the images I have
I have developed an extension that works great on Magento until 1.6 (I'm trying
On Magento, I'm trying to get avalable attributes per product in a new div
I have recently moved a magento installation of version 1.5.0.1 to a live server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.