I want to have a single
website with a single domain/URL. Under that
website I want to have two
stores, each of which will have one single
One store is intended for regular browser clients, and the other store is for clients which use a specific mobile app which has its own browser with a unique user agent. The people I'm building this for want to showcase different products in that app.
I'm running Magento2 with nginx 1.8 and php-fpm 7.0
I thought I could set this up by modifying my index.php as seen in numerous examples. Even the official documentation shows this, saying that I need to set
MAGE_RUN_TYPE to either
MAGE_RUN_CODE to the one that I want.
My problem is that I cannot figure out what to set as value for
MAGE_RUN_CODE! Looking in the backend and database,
stores (db table
store_group) don't have a
store views have a
code, and every single example I can find on the internet uses
'website' which doesn't help me.
How do I tell Magento which store I want to show?