dongmiao520892 2012-01-09 10:32
浏览 35
已采纳

多网站magento中的问题?

I have configured a multi website like bikestore. So right now i have a folder bikestore inside my main magento installation which contains index.php file and a .htaccess file. I have created few categories withen my bikestore website and i have the following url to access my bikestore website http://localhost/magento/bikestore/. and it shows me the home page with the bikestore categories however if i click on MAGENTO Home it takes me to following url http://localhost/magento instead of http://localhost/magento/bikestore/ and when i click on any categories the url it takes me is as http://localhost/magento/index.php/catalog/category/view/s/yamaha/id/11/ instead it should take me to this http://localhost/magento/bikestore/index.php/catalog/category/view/s/yamaha/id/11/.. I think I am missing some code.

  • 写回答

1条回答 默认 最新

  • douxiong1994 2012-01-09 11:48
    关注

    By default, magento does not add storecodes to the URL, try changing the following setting:

    System -> Configuration -> Web -> Url Options -> Add Store Code to Urls
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog