<p>Use a <a href="http://buildwithcraft.com/docs/multi-environment-configs" rel="nofollow">Multi-Environment</a> configuration to set the <a href="http://buildwithcraft.com/help/site-url" rel="nofollow">siteUrl</a> for your two locales, <code>en_au</code> and <code>en_us</code>, independently for each domain like so:</p>

<pre><code>'project.com.au' =&gt; array(
    'siteUrl' =&gt; array(
        'en_au' =&gt; 'http://project.com.au/',
        'en_us' =&gt; 'http://project.co/',
    ),
),

'project.co.nz' =&gt; array(
    'siteUrl' =&gt; array(
        'en_au' =&gt; 'http://project.co.nz/',
        'en_us' =&gt; 'http://project.co/',
    ),
),

'project.co.za' =&gt; array(
    'siteUrl' =&gt; array(
        'en_au' =&gt; 'http://project.co.za/',
        'en_us' =&gt; 'http://project.co/',
    ),
),

'project.co' =&gt; array(
    'siteUrl' =&gt; array(
        'en_au' =&gt; 'http://project.com.au/',
        'en_us' =&gt; 'http://project.co/',
    ),
),
</code></pre>

<p>You can also set additional environment / domain specific variables in the config file. You could set the currency or the timezone for each domain:</p>

<pre><code>'project.com.au' =&gt; array(
    'currency' =&gt; 'AUD',
    'timeZone' =&gt; 'UTC+10',
    'siteUrl' =&gt; array(
        'en_au' =&gt; 'http://project.com.au/',
        'en_us' =&gt; 'http://project.co/',
    ),
),
</code></pre>

<p>This is how you <a href="http://buildwithcraft.com/docs/templating/craft.config" rel="nofollow">access such a variable</a> in your templates:</p>

<pre><code>{{ craft.config.currency }}
</code></pre>

CC BY-SA 3.0
2014-08-12T18:03:54.470Z
2014-08-12T18:18:54.570Z
2014-08-12T18:18:54.570Z
carlcs
<p>Hi I'm creating a site that will be used in 4 locales which each have their own domain.</p>

<ul>
<li>Australia: project.com.au </li>
<li>New Zealand: project.co.nz </li>
<li>South Africa: project.co.za </li>
<li>USA: project.co</li>
</ul>

<p>In short, from a content management perspective I only want two locales. English AU and English USA. However, I need the content on the au locale to be accessible from the au,nz,za domains. </p>

<p>Is it possible to have an array of URL for one locale config?</p>

<localization><config>
Multiple domains for a single locale
# Multiple domains for a single locale

(Asked by: username_0 on 2014-08-12)

Hi I'm creating a site that will be used in 4 locales which each have their own domain.

* Australia: project.com.au
* New Zealand: project.co.nz
* South Africa: project.co.za
* USA: project.co

In short, from a content management perspective I only want two locales. English AU and English USA. However, I need the content on the au locale to be accessible from the au,nz,za domains.

Is it possible to have an array of URL for one locale config?

**Tags:** localization, config


---

## 1 answers

### Answer by username_1 on 2014-08-12. Score: 1 | Accepted answer

Use a Multi-Environment configuration to set the siteUrl for your two locales, en_au and en_us, independently for each domain like so:
'project.com.au' => array(
    'siteUrl' => array(
        'en_au' => 'http://project.com.au/',
        'en_us' => 'http://project.co/',
    ),
),

'project.co.nz' => array(
    'siteUrl' => array(
        'en_au' => 'http://project.co.nz/',
        'en_us' => 'http://project.co/',
    ),
),

'project.co.za' => array(
    'siteUrl' => array(
        'en_au' => 'http://project.co.za/',
        'en_us' => 'http://project.co/',
    ),
),

'project.co' => array(
    'siteUrl' => array(
        'en_au' => 'http://project.com.au/',
        'en_us' => 'http://project.co/',
    ),
),

You can also set additional environment / domain specific variables in the config file. You could set the currency or the timezone for each domain:
'project.com.au' => array(
    'currency' => 'AUD',
    'timeZone' => 'UTC+10',
    'siteUrl' => array(
        'en_au' => 'http://project.com.au/',
        'en_us' => 'http://project.co/',
    ),
),

This is how you access such a variable in your templates:
{{ craft.config.currency }}


---

