http://www.magentocommerce.com/boards/viewthread/71318/をフォローして、サーバーにデュアル TLD をセットアップし、1 つのストアを指すようにして、実質的に 2 つの基本パスを持つことができるようにしました... domain.comおよび domain.co.uk は 2 つの別個のストアとして存在しますが、1 つのデータ セットなどにアクセスします (一方を他方に転送するだけではありません)。
これは、 .co.uk インデックスがサーバーのルートにある .com の下にある私のフォルダー構造です (.com というラベルの付いたフォルダーは無視してください)...
指示に従って、私は2つのことをする必要があります
1) 2 番目の TLD の場所の index.php を変更して、単一の magento ストアの Mage.php ジョブが完了したことを反映します。
2)店舗コードを反映するように最後の行を変更します
"Next you change the website reference on the last-ish line. You enter the reference you gave that store in the Magento admin"
助けていただける方のために、.com TLD にある完全なコードを以下に示します。
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category Mage
* @package Mage
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
if (version_compare(phpversion(), '5.2.0', '<')===true) {
echo '<div style="font:12px/1.35em arial, helvetica, sans-serif;">
<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
<h3 style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">
Whoops, it looks like you have an invalid PHP version.</h3></div><p>Magento supports PHP 5.2.0 or newer.
<a href="http://www.magentocommerce.com/install" target="">Find out</a> how to install</a>
Magento using PHP-CGI as a work-around.</p></div>';
exit;
}
/**
* Error reporting
*/
error_reporting(E_ALL | E_STRICT);
/**
* Compilation includes configuration file
*/
define('MAGENTO_ROOT', getcwd());
$compilerConfig = MAGENTO_ROOT . '/includes/config.php';
if (file_exists($compilerConfig)) {
include $compilerConfig;
}
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
$maintenanceFile = 'maintenance.flag';
if (!file_exists($mageFilename)) {
if (is_dir('downloader')) {
header("Location: downloader");
} else {
echo $mageFilename." was not found";
}
exit;
}
if (file_exists($maintenanceFile)) {
include_once dirname(__FILE__) . '/errors/503.php';
exit;
}
require_once $mageFilename;
#Varien_Profiler::enable();
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
#ini_set('display_errors', 1);
umask(0);
/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';
Mage::run($mageRunCode, $mageRunType);
明らかに最後の数行ですが、何を設定する必要があるのか わかりません...
私のmagentoストアリストを見て、私は持っています
スクリーン ショットから、新しいストアを追加したことがわかりますが、追加する必要があったのは新しいウェブサイトですか?
ベースと言うセクションを代替に変更しますか?おそらく完全なURL?
元に戻せない場合に備えて、あまりいじりたくありません
サイト、ストア、ストアビューを追加する私のオプション
2 つの店舗を持つ現在のセットアップ
.com - ストア設定
.co.uk - ストア設定
メイン Web サイト (Web サイト設定)
できるだけ早くこれをライブにする必要があるので、どんな助けも素晴らしいでしょう...同じことをしようとしている他の人がここの人々の意見と協力から学ぶことを願っています
ヘンリー