Support Hub

Securing the Document Root

For increased security we recommend changing the public directory of a Magento 2 site to 'pub'.  This prevents site visitors from accessing sensitive areas of the Magento file system.  We've added this as a feature in our platform to make is easy for you to do.

Log in to the platform and select the website from the server dashboard.  Scroll down on the website dashboard to the Application section and enable to toggle on the Secure Document Root section.