Magento Certified Professional Cloud Developer — Question 5

You are adding a new website to the Magento store you manage. This website will run on the same instance of Magento to take advantage of shared integration processes
When accessing the new website URL, it redirects to the original website. The files in /media/ and /static/ do not redirect. The correct URL is present in the website configuration.
What step must you complete for the URL to stop redirecting?

Answer options

Correct answer: A

Explanation

The correct answer is A because updating app/etc/config.php with the new website URL ensures that Magento recognizes the new site and properly routes traffic to it. The other options do not address the core issue of URL redirection within the Magento instance, as they involve different configurations that do not directly impact URL handling.