Roots Discourse

How to have one page on a different domain

One page on the organisation site I’m building is the homepage for an individual project which needs to keep its own domain. I want to map the project’s domain to just that page so that projectname.co.uk, points to what is currently orgname.co.uk/projectname (but not redirect).

I’ve done some searching around but can’t quite get what changes I’d make to the nginx config.

I guess I start with adding it to the site hosts:

    site_hosts:
      - canonical: orgname.test
        redirects:
          - www.orgname.test
      - canonical: projectname.test
          - www.projectname.test

I guess the next step is to setup the redirect in the nginx conf file? I’ve not customised nginx before. Grateful for any help :slight_smile: