一个人可以在Magento Community Edition上托管多个商店吗? [英] Can one host multiple store on Magento Community Edition?

查看:75
本文介绍了一个人可以在Magento Community Edition上托管多个商店吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个人可以在Magento Community Edition上托管多个商店吗?以及如何在建立每个新商店时自动为其创建一个子域?

解决方案

是的,您可以从Magento社区版中运行多个站点. Magento官方博客实际上只是发布了一篇有关此的文章,您可能需要检查一下: http://www. magentocommerce.com/blog/comments/from-the-support-team-multi-site-domain-name-setup/

要点是您需要在Admin后端中创建一个新商店.如果两个站点都没有使用相同的产品目录,则还需要在目录类别设置中创建另一个根类别",并将该类别指定为第二家商店的正确根.

最后,子域问题.根据运行的服务器设置类型,这可能是棘手的部分.如果您完全控制服务器(最好的主意,因为从资源的角度来看,在共享主机上运行Magento有点麻烦),请将虚拟主机添加到apache并在.htaccess中为您的站点设置环境MAGE_RUN_CODE和MAGE_RUN_TYPE变量. /p>

但是,在创建站点时,我看不到任何简单的方法来设置子域.您将需要编写apache来创建主机并修改.htaccess,这需要一些不平凡的开发才能从Magento网站上完成.

该链接另一端的详细答案.希望有帮助.

谢谢, 乔

Can one host multiple store on Magento Community Edition? And how to automatically create a subdomain for each new store when it's set up?

解决方案

Yes, you can run multiple sites from Magento community edition. The Official Magento blog actually just had a post about this that you may want to check out: http://www.magentocommerce.com/blog/comments/from-the-support-team-multi-site-domain-name-setup/

The gist is that you need to create a new store in the Admin backend. If you are not using the same product catalog for both sites, you will also need to create another "root category" in your catalog category setup, and specify that category as the proper root for your second store.

Finally, the subdomain problem. Depending on what kind of server setup you are running, this could be the tricky part. If you have full control of the server (best idea, since running Magento on shared hosts is a bit problematic from a resource point of view), add vhosts to apache and set the environment MAGE_RUN_CODE and MAGE_RUN_TYPE variables in .htaccess for your site.

I don't see any easy way to set up the subdomain when you create the site, though. You would need to write apache to create hosts and modify .htaccess, which would take some nontrivial development to get done from the Magento site.

Much more detailed answer on the other end of that link. Hope that helps.

Thanks, Joe

这篇关于一个人可以在Magento Community Edition上托管多个商店吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆