• Vincent

    (@koconder)


    Hi,

    I’m currently looking to rebuild my current wordpress installation running Woocommerce: Ayana Jewellery.

    We are looking to use the wp-config fix to load up the multiple hostnames from a single install of wordpress:

    // Or add appropriate logic so it works on all servers:
    if ($_SERVER['HTTP_HOST'] == 'dev.domain.com') {
        define('WP_SITEURL', 'https://dev.domain.com');
        define('WP_HOME',    'https://dev.domain.com');
    } else {
        define('WP_SITEURL', 'https://www.domain.com');
        define('WP_HOME',    'https://www.domain.com');
    }

    This is to allow us to run multiple versions of the site with .com.au .co.nz .co.uk etc from a single instance and rework the theme to load up different currencies etc without having the need to use multi-site and sync orders and products all the time.

    The issue is such a configuration is breaking in W3TC, as W3TC can’t tell the difference between the hostnames and cache each hostname independently of one an other.

    Is it a simple configuration fix, i.e. to define the hostname or cache ‘key’ for W3TC, or would you recommend something else?

    Thanks
    Vincent

    https://www.ads-software.com/plugins/w3-total-cache/

  • The topic ‘Major issue with multiple hostnames using a single wordpress installation’ is closed to new replies.