QuestionQ62

VerifiedSetup/configuring Adobe Commerce Cloud

A merchant with an Adobe Commerce Cloud project wants to configure one of their websites with a subdomain. The merchant is considering setting the domain as secondstore.example.com.

In addition to editing the magento-vars.php file, applying a domain check, and setting $_SERVER[“MAGE_RUN_CODE”] and $_SERVER[“MAGE_RUN_TYPE”], which file is required to perform this action?

Explanation

Adobe Commerce on cloud infrastructure defines domain and subdomain routing in .magento/routes.yaml. The magento-vars.php file selects the website or store by setting MAGE_RUN_CODE and MAGE_RUN_TYPE based on the request host, while .magento/services.yaml configures services rather than HTTP routes.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!