建造多域名网站
例子:
http://www.luxuryjewelryonline.com/tiffany/
http://www.luxuryjewelryonline.com/cartier/
就和这种:
步骤:
1
在后台添加分类
做catelog
tiffany
------
cartier
------
2
添加website,与catelog联系起来
3
在根目录建立文件夹tiffany和cartier
将根目录的.htaccess和index.php文件拷贝进来。
4
修改index.php
$mageFilename = '../app/Mage.php';
With the index.php file still open, replace the following line of code:
Mage::run();
…with the following:
Mage::run('tiffany', 'website');
//在cartier文件中:Mage::run('cartier', 'website');
到这里设置基本完成,但是点击的时候会发现,分类,产品等有问题,
5
system->config->web
在current Configuration Scope中选择website->tiffany.
将Unsecure->BaseURL改为http://www.luxuryjewelryonline.com/tiffany/
BaseLinkURL->{{unsecure_base_url}}
Base Skin URL->http://www.luxuryjewelryonline.com/skin/
Base Media URL->http://www.luxuryjewelryonline.com/media/
Base JavaScript URL ->http://www.luxuryjewelryonline.com/js/
将secure->BaseURL改为http://www.luxuryjewelryonline.com/tiffany/
BaseLinkURL->{{unsecure_base_url}}
Base Skin URL->http://www.luxuryjewelryonline.com/skin/
Base Media URL->http://www.luxuryjewelryonline.com/media/
Base JavaScript URL ->http://www.luxuryjewelryonline.com/js/
Use Secure URLs in Frontend------>no
OK!
在将cartier,也按该步骤设置,OK,可以访问了。在相应website下的目录和产品的开头url都是以http://www.luxuryjewelryonline.com/tiffany/开头!!!!