Unable to find a matching sales channel for the request
In Shopware 6, sales channels are linked to domains. Shopware distinguishes not only between subdomains and main domains (e.g., creoline-demo.com and www.creoline-demo.com), but also between secure and insecure requests (https:// and http://).
Error message:
Unable to find a matching sales channel for the request: https://creoline-demo.com/".
Please make sure the domain mapping is correct. Troubleshooting:
Log in to the Shopware administration panel and check the domain configuration of your sales channels. Regardless of whether you operate your store on a www. subdomain, you should ensure that there is only one way to access the store.
Example:
| Domain | Protocol | Subdomain |
|---|---|---|
| http://creoline-demo.com | HTTP | none |
| http://www.creoline-demo.com | HTTP | none |
| https://creoline-demo.com | HTTPS | none |
| https://www.creoline-demo.com | HTTPS | www. |
In Shopware 5, it was possible to automatically redirect to the main store via the virtual host configuration. This feature is no longer available in Shopware 6, so the web server should handle the redirects in advance.
To do this, ensure that only one of the four cases listed above points to Shopware’s actual public folder. All other three cases should point directly to the target domain, including the protocol, via a 301 redirect.
Additionally, the sales channel must be enabled in the settings so that the HTTP request can be assigned to a sales channel.
Status Setting:
Sales Channel → Settings → Status → Active