【问题标题】:Magento CMS hompage 404 page not found 1Magento CMS 主页 404 页面未找到 1
【发布时间】:2012-07-21 14:33:46
【问题描述】:

我正在为这个撕毁我的头发!我正在尝试为我的 Magento 商店首页使用 CMS 页面,但我不断收到“404 Not Found 1”页面(“哎呀,我们的坏...”),但是,我可以通过 url 直接访问 CMS 页面-> domain-2.com/d2-home

我在 CMS -> Magento 的页面部分设置了自定义主页

Magento 1.7

Title = "d2-Homepage"
URL Key = "d2-home"
Store view = "English -> Store 2 -> Domain 2

在我的系统中 -> 配置 -> 网络

Default Web URL = "d2-home"
CMS Home Page = "d2-Homepage"

由于我对 2 个商店使用相同的 Magento 环境,因此我的 .htaccess 文件是

SetEnvIf Host www\.domain-1\.com MAGE_RUN_CODE=domain_1
SetEnvIf Host www\.domain-1\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^domain-1\.com MAGE_RUN_CODE=domain_1
SetEnvIf Host ^domain-1\.com MAGE_RUN_TYPE=website

SetEnvIf Host www\.domain-2\.com MAGE_RUN_CODE=domain_2
SetEnvIf Host www\.domain-2\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^domain-2\.com MAGE_RUN_CODE=domain_2
SetEnvIf Host ^domain-2\.com MAGE_RUN_TYPE=website

注意:

我已尝试清除 chache、索引等。似乎没有任何效果

提前致谢!

【问题讨论】:

    标签: magento content-management-system http-status-code-404


    【解决方案1】:

    Default Web URL 必须设置为 cms。然后在CMS Home Page 选择您的 CMS 页面。还要确保您在正确的配置范围内进行这些更改。

    【讨论】:

    • 谢谢!默认 Web URL 必须设置为“cms”,并且您从 CMS 主页下拉菜单中选择模板。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-27
    • 1970-01-01
    • 2012-05-18
    相关资源
    最近更新 更多