1

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?

  • 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 May 1 '17 at 16:39
3

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.