Multiple domains

Using domain rewrite settings

Buto can handle multiple domains in "/theme" folder. In /config/settings.ym one has to tell by domain witch theme it´s belong to. Normaly you only need one but in situations where many sites are sharing same data, it´s a advantage to swift themes by domain name. Like if one need different sites depending on visitor language.

  /config/settings.yml
  
# Default theme.
theme: demo/helloworld

# Change theme depending on domain name.
domain:
  'www.hellobuto.com':
    rewrite:
      set:
        -
          path_to_key: 'theme'
          value: demo/hellobuto

By using rewrite settings by domain name one could also change other values in /config/settings.yml file.