Change Domain Document Root

Note

You should change default directory for your website content from root folder to public sub-folder.

cPanel

  • Log into cPanel.
  • Looking for Domains section, click on Addon Domains.
  • Now, in the Edit Domain page, click the edit icon under Document Root column.
  • Change your Document Root to your_uploaded_folder/public, replace your_uploaded_folder with the path of your uploaded folder.
  • Click Change.