Website Root Folder (Document Root) Explained Print

  • 0

Your website only loads files from its document root (web root). If files are uploaded to the wrong folder, the website will show a default/placeholder page or a 404. Common web root folders - public_html - htdocs - www How to confirm the correct web root 1) StackCP → Websites → File Manager. 2) Select the correct domain/website (if prompted). 3) Open the folder that already contains an index file: - index.php (typical CMS) - index.html (static site) 4) If you see a default placeholder index file you did not create, it may need to be removed/replaced. Common mistakes - Uploading site files into a nested folder such as public_html/site/ instead of public_html/ - Installing WordPress into a subfolder when you want it on the main domain - Mixing multiple sites under the same folder without separate document roots

Was this answer helpful?

« Back