I have a site that let anyone create there own site with our sub-domain and they can also use there own custom domain.
user_site: resource: "routing_user_site.yml" host: "{subdomain}.{domain}" requirements: domain: %domain% defaults: domain: %domain% # Our Site site: host: %domain% resource: "routing_our_site.yml" prefix: / The above route works fine, but I'm not sure how to redirect other domains, which is not our main domain to route routing_user_site.yml file
I have added this, but doesn't work
custom_site: host: "{domain}" resource: "routing_user_site.yml" prefix: / requirements: domain: !(%domain%)