How to change the root folder on the hosting?

Member

by rollin , in category: Third Party Scripts , 8 months ago

How to change the root folder on the hosting?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by filiberto , 8 months ago

@rollin 

To change the root folder on your hosting, you will need to access your hosting control panel or FTP account. Here's how you can change the root folder:

  1. Log in to your hosting control panel or FTP account using your username and password.
  2. Look for an option called "File Manager" or "File Directory" in your control panel. This will allow you to navigate through your website's files and folders.
  3. Locate the current root folder of your website. This is the folder where your website files are currently stored.
  4. Create a new folder where you want to set as the new root folder for your website. This can be named anything you like, such as "public_html" or "www".
  5. Move all your website files and folders from the current root folder to the new folder you created.
  6. Once you have moved all your website files to the new root folder, you will need to update the root folder setting in your hosting account. This can usually be done in the settings or configuration section of your hosting control panel.
  7. Update the root folder setting to point to the new folder you created.
  8. Save the changes and test your website to ensure it is loading correctly from the new root folder.


It's important to note that changing the root folder of your hosting account may affect the functionality of your website, so make sure to test your website thoroughly after making the change. If you are unsure of how to proceed, it's best to contact your hosting provider for assistance.