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

  • Home
  • SEARCH
  • 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 6743845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:00:40+00:00 2026-05-26T12:00:40+00:00

I got windows server 2008 r2 standard virtual server with godaddy. I have magento

  • 0

I got windows server 2008 r2 standard virtual server with godaddy.

I have magento community 1.6.1.0 deployed under IIS 7.5 and it is working fine.

I tried to follow this link to use one backend to manage multiple website

http://www.magentocommerce.com/knowledge-base/entry/overview-how-multiple-websites-stores-work

I have created a foolder in the same level as the base magento install folder
copy index.php and .htaccess file here, modify index.php to Mage::run(’mysite1’, ‘website’);
create a new website in IIS and pointed to this folder
configure the web tab for the scoop of this new website to configure the base url and secure base url

problem is that when i visit the new domain, it always redirect to the base website the default magento store.

i did a bit search, some post said “redirect to base url option”, but it is nowhere to be found.
i also tried to set “Auto-redirect to Base URL” to no, but it is not helping.

can anyone help me out of this?

thanks

  • 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-26T12:00:41+00:00Added an answer on May 26, 2026 at 12:00 pm

    You don’t need a different index.php

    if your main site is http://www.mainsite.com and is “mainsite” in Magento AND your new domain is http://www.anothersite.com and is “anothersite” then put this code in your index.php :

    switch($_SERVER['HTTP_HOST']) {
      case 'www.mainsite.com' :
        Mage::run('mainsite', 'website');
        break;
    
      case 'www.anothersite.com' :
        Mage::run('anothersite', 'website');
        break;
    
      default:
        Mage::run();
    }
    

    Personally I prefer to use Mage::run(‘anothersite’, ‘store’);

    Now – VERY IMPORTANT – you need to go into Magento config where you put the FRONT and BACKEND URLS in and switch to the new website level. You can then override the default and put in the new domain.

    Hope this helps – if you need further expansion on the solution please let me know

    Barny

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

Sidebar

Related Questions

I have a working installation of mssql, php on Windows 2003, SQL Server 2008
Just got my Lync server deployed on Windows Server 2008 R2 and am trying
I've got DotNetNuke (v5.1.4 Community Edition) setup on a Windows Server 2008 64-bit system
I just got setup on my first Windows Server 2008 / IIS7.5 server for
I just got a new windows server 2008 dedicated server and I can't for
I have visualSVN server installed on windows server 2008. I want to use the
I just got a Windows Server 2008 VPS and I'm having trouble getting IIS7
In the properties section of my network card, on windows server 2008, i have
I am working on a Windows Server 2008, the MSDTC (Distributed Transaction Coordinator) Service
I just got IIS7 set up on a Windows Server 2008 R2 machine in

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.