How do I disable the private_html directory in order to only use the public_html directory?

It is customary to have a separate folder for SSL enabled websites. This means is that there are actually two directories on the server for hosting your website files:

  1. public_html – the standard "public" folder for non-SSL HTTP requests
  2. private_html – the standard "private" folder for SSL or HTTPS requests (e.g. secure content)

While this has been a standard practice, it forces account holders to duplicate any website pages, images and information that are served over both HTTP and HTTPS connections. Pages and information must reside in both the public_html and private_html directories on the server in order to prevent any SSL errors.

To make things easier to manage, users are able to configure their domain through the Control Panel so that both Public and Private files reside in the public_html directory. To enable this feature for your website follow these steps:

Step 1: Login to DirectAdmin and Choose the "Domain Setup" Link

Step 1: Select the Domain Setup Option

On the next page select the domain that you would like to make these changes for.

Step 2: Choose the Symbolic Link Option

On the following page that displays the directory options, choose the second option at the bottom to Use a Symbolic Link for data in both directories, then click Save:

Step 2 - Choose the Symbolic Link option

After making this change you will upload all files to your standard public_html directory.

Please Note: Before you choose this option, please ensure that your pages, images and data within the private_html directory have been moved to your public_html directory. This process deletes everything within the private_html folder.
  • 44 Users Found This Useful
Was this answer helpful?

Related Articles

Where do I upload my website files to on the web server?

When you are ready to upload your website to your server, please take note of the following...

How do I install an SSL certificate that I have purchased for my domain?

Step 1: Install the SSL Certificate After you have purchased and received your SSL certificate,...

How to generate a CSR and install an SSL certificate purchased for your domain

Step 1: Generate A CSR To begin the process login to the control panel and click on the SSL...

How do I install an SSL certificate that I have purchased for my domain?

Step 1: Install the SSL Certificate After you have purchased and received your SSL certificate,...