【发布时间】:2012-11-09 20:34:53
【问题描述】:
是否可以在不需要创建符号链接的情况下设置带有子文件夹/子目录的 magento 多存储?
For example:
www.mainstore
www.mainstore/store1
www.mainstore/store2
www.mainstore/store3
出于安全原因,一些托管服务提供商禁用了符号链接,通常的方法是在 magento 根目录中为每个商店创建一个文件夹,将 index.php 和 .htaccess 复制到其中,并为所有其他 magento 文件夹创建符号链接,像这样:
ln -s /home/example/example.com/html/app/ app
ln -s /home/example/example.com/html/includes/ includes
ln -s /home/example/example.com/html/js/ js
ln -s /home/example/example.com/html/lib/ lib
ln -s /home/example/example.com/html/media/ media
ln -s /home/example/example.com/html/skin/ skin
ln -s /home/example/example.com/html/var/ var
我认为 .htaccess 重写也许是可能的,但我不知道如何设置。
感谢您的帮助! :)
【问题讨论】:
标签: magento