<p>I'd double-check your <code>index.php</code> files for all domains and make sure they're all using the correct handle in the <code>define('CRAFT_SITE')</code> code. Sometimes I copy/paste files between sites and forget to update the site-specific variables.</p>

<p>I'd also make sure the Base URL for each site is correct in the settings. </p>

<p>Also make sure the section your homepage uses isn't set to the wrong propagation method.</p>

CC BY-SA 4.0
2019-09-18T22:40:44.997Z
2019-09-18T22:40:44.997Z
kmgdev
<p>I setup Craft with one <code>domain-1</code>, now <code>domain-1</code> has sites <code>domain-1Global</code> and <code>domain-1NL</code>. On this domain, the translations work perfectly. </p>

<p>But now I added a second domain, <code>domain-2</code> with the sites <code>domain-2Global</code> and <code>domain-2NL</code>. When I access the base url from the <code>domain-2NL</code> I get the template for the homepage of <code>domain-1NL</code>. </p>

<p>I tried removing the <code>define('CRAFT_SITE', 'domain-1');</code> in the web folder, this worked for a while but ultimately failed. Does anybody know a different solution?</p>

<subdomain>
How can I have translations for my subdomain
# How can I have translations for my subdomain

(Asked by: username_0 on 2019-09-16)

I setup Craft with one `domain-1`, now `domain-1` has sites `domain-1Global` and `domain-1NL`. On this domain, the translations work perfectly.

But now I added a second domain, `domain-2` with the sites `domain-2Global` and `domain-2NL`. When I access the base url from the `domain-2NL` I get the template for the homepage of `domain-1NL`.

I tried removing the `define('CRAFT_SITE', 'domain-1');` in the web folder, this worked for a while but ultimately failed. Does anybody know a different solution?

**Tags:** subdomain


---

## 1 answers

### Answer by username_1 on 2019-09-18. Score: 1

I'd double-check your `index.php` files for all domains and make sure they're all using the correct handle in the `define('CRAFT_SITE')` code. Sometimes I copy/paste files between sites and forget to update the site-specific variables.

I'd also make sure the Base URL for each site is correct in the settings.

Also make sure the section your homepage uses isn't set to the wrong propagation method.


---

