当前位置: 动力学知识库 > 问答 > 编程问答 >

.htaccess - How to remove default code from url in magento

问题描述:

In my Magento I've created two store so we have now these stores:-

  1. commercial and url :- www.mysite.com/commercial
  2. default and url www.mysite.com/deault
  3. retail. and url www.mysite.com/deault/retail

My commercial url looking good but I want to remove default from these stores :-

  1. deault and url www.mysite.com/deault

    and

  2. retail. and url www.mysite.com/deault/retail

If I disable :"Add Store Codes" to Url = no then commercial stores stops working.

网友答案:

Here's an explanation for how to do it:

http://www.crucialwebhost.com/kb/how-to-setup-multiple-magento-stores/#subdirectory-method

Basically you need to manually create the subdirectories and put modified copies of the files index.php and .htaccess inside.

But this assumes that you run the 'default' shop directly on the domain top level directory. Another Stackoverflow post that could give insight into the settings:

Multiple magento stores on single domain

分享给朋友:
您可能感兴趣的文章:
随机阅读: