Unable to find a matching sales channel for the request

In Shopware 6, the sales channels are linked to domains. Shopware not only differentiates between the subdomain and main domain variant ( e.g. creoline-demo.com and www.creoline-demo.com ), but also between secured and unsecured 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 Shopware Administration and check the domain configuration of your sales channels. Regardless of whether you operate your store on a www. subdomain, you should ensure that only one variant is possible for calling up the store.


Example:

domain protocol subdomain
http://creoline-demo.com HTTP none
http://www.creoline-demo.com HTTP www.
https://creoline-demo.com HTTPS none
https://www.creoline-demo.com HTTPS www.


In Shopware 5, it was possible to automatically execute redirects to the main store via the configuration of the virtual hosts. In Shopware 6, this function is no longer available, so the web server should carry out the redirects in advance.

Make sure that only one of the 4 cases mentioned above points to the actual public folder of Shopware. All other three cases should point directly to the target domain including the protocol via 301 redirection.

In addition, the sales channel must be activated in the settings so that the HTTP request can be assigned to a sales channel.



Status setting:

Sales channel โ†’ Settings โ†’ Status โ†’ Active