English 中文(简体)
1.4.2 - 找不到 mage.php 。
原标题:MultiStore 1.4.2 - mage.php not found

我在主域下的 httpdocs 中安装了我的主商店, 它正在正常运行 。 现在, 我创建了一个子域域伙伴. mydomain. com, 其文件夹位于 httpdocs (httpdocs> 伙伴) 。 我在管理仓库中设置了第二个商店, 并更改了该仓库配置中的 URL 。 然后将. httaccess 文件与索引.php 文件复制到该文件夹中 。

我将这个添加到我的.hhtaccess档案中

RewriteCond %{HTTP_HOST} ^(.*)http://partners.mydomain.com/
RewriteRule ^ - [E=MAGE_RUN_CODE:partners_en]

改为索引.php

$mageFilename =  ../app/Mage.php ;

/* Store or website code */
$mageRunCode =  partners_en ;

/* Run store or run website */
$mageRunType =  store ;    

Mage::run($mageRunCode, $mageRunType);

我对1.6没有意见,但是在1.4.2中错误地说“./申请/图像.php没有找到”。

谁有办法吗?

问题回答
$compilerConfig = $_SERVER[ DOCUMENT_ROOT ] .  /magento/includes/config.php ;

$mageFilename = $_SERVER[ DOCUMENT_ROOT ] .  /magento/app/Mage.php ;

用这个,对我有用

DOCUONT_ROOT 是一个服务器变量,代表您代码所在的基本目录。

尝试在 < code> 之前添加一个 < code>/ 像这样 :

$mageFilename =  /../app/Mage.php ;

使用此选项 :

$compilerConfig = MAGENTO_ROOT .  /../includes/config.php ;

$mageFilename = MAGENTO_ROOT .  /../app/Mage.php ;




相关问题
Magento Configure Products + Simple Products

Current Magento setup: Configure Products + Simple Products Problem: Configurable product from 2000 simple products is causing an issue as Magento stops responding if i make configurable products ...

Magento - How to display ALL PRODUCTS in the homepage?

Display all products in the homepage? Anyone who have had done this? Note: This can be done in the CMS pages by adding manually each and every category id.. I don t want to do that.. Too much hassle ...

How to send product price alert in magento?

I am using magento 1.4 . Any one please tell me how to send product price alert. Do i need to change any code for that. If i need to change the code, possible to tell me where exactly to change and ...

magento custom link and insertion of form data

I have added a link named "campaigns" to the Magento "My Account" area after the Address book. The link, when clicked, should have a form with 4 fields: name email number place Once they submit the ...

How to put magento in maintenance

Is it possible to put a magento site under an maintenance flag so that visitors will get a message that the site is under construction? I can t find this setting in the admin area. Another solution ...

isBundle() in Magento?

How do you tell if a product page is set up as a bundle in Magento 1.4? I can t find a way to do it.

Display Magento Category Image

Generally, the top menu will list out sub-category s name, I want to list out sub-category s image. Can anyone advise the php code. Thank you

热门标签