2013-12-23 52 views

回答

1

關注this鏈接來創建multistore。 無需創建新域名。就像

Main Store Url : http://localhost/magento/ 

Give Secondary Store Url : http://localhost/magento/multistore 
+0

它不適合我。如何替換此代碼SetEnvIf Host。* base。* MAGE_RUN_CODE =「base」; SetEnvIf Host。* magento_site_2。* MAGE_RUN_TYPE =「magento2」; –

+0

in localhost不需要添加.htaccess文件。只需在umask(0)文件夾中添加index.php文件。 /*商店或網站代碼*/ $ mageRunCode = isset($ _ SERVER ['MAGE_RUN_CODE'])? $ _SERVER ['MAGE_RUN_CODE']:'<您的站點代碼>'; /*運行商店或運行網站*/ $ mageRunType = isset($ _ SERVER ['MAGE_RUN_TYPE'])? $ _SERVER ['MAGE_RUN_TYPE']:'website'' 試試這個 –

+0

如果我不想在我新創建的商店文件夾中添加htaccess文件意味着那麼我應該在哪裏添加上面的代碼? –