<p>In order to get Live Preview to work across different subdomains on a single install, you'll need to setup a few extra things as outlined in this support article: <a href="https://craftcms.com/support/cross-domain-live-preview" rel="nofollow noreferrer">https://craftcms.com/support/cross-domain-live-preview</a></p>

CC BY-SA 3.0
2017-05-01T17:43:46.440Z
2017-05-01T17:43:46.440Z
Brad Bell
<p>I have a multi-site setup on two different domains (actually subdomains) with a single Craft install. I have modified <code>config/general.php</code> file to make it work on both the subdomains. Each domain has different template set completely independent of each other. However, Live Preview will work on entries created for only one sub-domain (one that is specified in the control panel). The option is not available for the other subdomain. This is because the public link for the entries corresponding to second subdomain is being parsed as those belonging to the first subdomain. Obviously those links are giving 404 error and hence the Live Preview button is not active.</p>

<p>Is there a way to tell craft that certain entries belong to a specific subdomain?</p>

CC BY-SA 3.0
2017-05-01T16:39:12.397Z
I created a 301 directives on nginx so that the url button (globe icon) redirects to correct subdomains. But Live Preview button is still not showing up for one subdomain
hvs
<live-preview><multi-domain><multi-site>
Two domains - single install - Live Preview works only on one
# Two domains - single install - Live Preview works only on one

(Asked by: username_0 on 2017-05-01)

I have a multi-site setup on two different domains (actually subdomains) with a single Craft install. I have modified `config/general.php` file to make it work on both the subdomains. Each domain has different template set completely independent of each other. However, Live Preview will work on entries created for only one sub-domain (one that is specified in the control panel). The option is not available for the other subdomain. This is because the public link for the entries corresponding to second subdomain is being parsed as those belonging to the first subdomain. Obviously those links are giving 404 error and hence the Live Preview button is not active.

Is there a way to tell craft that certain entries belong to a specific subdomain?

**Tags:** live-preview, multi-domain, multi-site

> **Comments:**
> **username_0**: I created a 301 directives on nginx so that the url button (globe icon) redirects to correct subdomains. But Live Preview button is still not showing up for one subdomain  

---

## 1 answers

### Answer by username_1 on 2017-05-01. Score: 3 | Accepted answer

In order to get Live Preview to work across different subdomains on a single install, you'll need to setup a few extra things as outlined in this support article: <https://craftcms.com/support/cross-domain-live-preview>


---

