Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I set up multiple websites with subdirectories? 
 
milestonedata
Jr. Member
 
Total Posts:  8
Joined:  2008-11-21
 

Hello. I am trying to set up magento to have multiple stores or websites so that each site can be linked by a subdirectory.
For example, I have an online mall with niche stores.

http://boardsportsmall.com/ (main site)
http://boardsportsmall.com/?___store=bigkahunasurf (set up as a store)
http://boardsportsmall.com/islandwatersports/ (set up as a website)

I would like each store to be accessed or linked to by going to a subdirectory....
from: http://boardsportsmall.com/?___store=bigkahunasurf
to: http://boardsportsmall.com/bigkahunasurf

I have created subdirectories for each and copied over the .htaccess file and the index.php
as in the post from this site:
http://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/#subdirectory-method

When I try to go to the “store”, I get a 404 error:
http://boardsportsmall.com/bigkahunasurf/

When I try to go to the “website”, the design doesn’t diplay:
http://boardsportsmall.com/islandwatersports/

Any ideas on what I’m not doing right?

Thanks,
Mike

 
Magento Community Magento Community
Magento Community
Magento Community
 
Yoza
Jr. Member
 
Total Posts:  8
Joined:  2010-01-27
 

Hello,
I am facing the same problem, I followed the doc
http://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/#subdirectory-method
and I get a 404 error when I am trying the new store (the first store is working well).

Have you resolved this ?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lugana
Jr. Member
 
Total Posts:  9
Joined:  2012-12-03
 

Sorry about the long post I was trying to be specific and as helpful as possible.

Ok so I was looking at setting up another store for my Magento website polyfurniture.com, this website sales outdoor patio furniture from different brands. In order to provide a better UX we wanted to have the different brands of outdoor patio furniture be different stores within polyfurniture.com. I wanted the stores URL to look like this —> polyfurniture.com/polywood which I was able to do with the subdirectory method creating another folder named “polywood” under “polyfurniture” and then just editing the Base Url for the “Store” polywood , under System Config -> General -> Web -> Base URL: http://polyfurniture.com/polywood/, Also in order for this to work I had to put a .htaccess and Index.php file under my newly created folder “polywood” and edited a couple lines in the Index.php file. Yay! everything works… polyfurniture.com/polywood gets me to my new store with my custom skin etc! But when I click into one of the NAV MENUs, lets say Dining, I get this URL for the category -> polyfurniture.com/polywood/index.php/dining.html, everything is working fine and I can navigate but the problem here is I don’t want index.php in the url. For some reason Magento throws Index.php in all your urls unless you enable server rewrites from your backend admin under “System Configuration” and do a little modifying in the .htaccess file. SUCCESS! I was able to get index.php out of the URL so now its looks like this -> polyfurniture.com/polywood/dining.html, BUT no products show up if I take index.php out of URL. My main website Polyfurniture.com has server rewrites enabled and I am able to navigate just fine. Am I missing something due to me using the subdirectory method to achieve this? I am so close to running my website the way I want if anyone can shed some light I would appreciate it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Monty_iLM
Guru
 
Total Posts:  450
Joined:  2013-11-05
 

Hi,

You can also check this thread for set up multiple websites with subdirectories http://www.templatemonster.com/help/magento-how-to-set-up-and-manage-multiple-stores.html

Hope this will help you!!

Thanks

Monty
iLoveMage

 
Magento Community Magento Community
Magento Community
Magento Community
 
cinevate
Jr. Member
 
Total Posts:  7
Joined:  2011-07-04
 

Here are the steps that I followed to successfully configure multiple stores in Magento that use subdirectories.

I already had a store successfully configured and running (mystore.com) however I wanted to add a second store using the exact same design and products and have it exist as a subdirectory (mystore.com/secondstore). Also note that I was running Magento ver. 1.7.0.2.

1. First I followed these instructions (specifically the ‘Subdirectory Method’) http://www.crucialwebhost.com/kb/how-to-setup-multiple-magento-stores/

2. Then within System > Configuration > General > Web, and with my secondstore website selected under ‘Current Configuration Scope’, I changed both the Unsecure and Secure Base Link URL to include ‘secondstore/’ at the end. I did this to ensure that when users were navigating in mystore.com/secondstore they remained in the secondstore - otherwise all the links would take secondstore users back to mystore.com.

3. In step 1 I had copied the index.php and .htaccess files to my /secondstore directory that I created, additionally I had to change…

$mageFilename MAGENTO_ROOT '/app/Mage.php';

...in secondstore/index.php to…

$mageFilename MAGENTO_ROOT '/../app/Mage.php';

...otherwise I was getting the ‘app/Mage.php was not found’ error.

4. At this point the mystore.com/secondstore site would load but no products were displaying, even though I configured the mystore.com/secondstore website to use the same product categories as mystore.com in step 1. In order to get the products to appear I had to go to Catalog > Manage Products > a product > Websites and actually check off the secondstore website. Then the product would appear.

5. Because I wanted the mystore.com/secondstore website design to appear identical to the original mystore.com website, I had to set the secondstore to use the same design. I did that in System > Design, click the Add Design Change button and choose my secondstore store view for the Store dropdown and then choose the same Custom Design from the dropdown that I was using for mystore.com.

6. I also wanted the exact same ‘home’ page for both sites, so under CMS > Pages I edited the ‘home’ page so that Store View page was set to All Store Views.

Keep in mind I did all of this on a test website and randomly cleared my Magento cache and reindexed several times throughout the process.

 
Magento Community Magento Community
Magento Community
Magento Community
 
aerolin
Jr. Member
 
Total Posts:  1
Joined:  2014-01-31
 

Hi, I would like to set up multiple store but with different languages. (English, Chinese Simplified and Chinese Tradisional). Any guides on how to do it?

Thanks

Regards,
风水大师

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top