Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

https before address shows only files in private_html folder on host

when i try my webpage address with https, page shows only files in the private_html folder not public_html. but my website runs in the public_html. for example i use an index.html file (including forwarder script) and when you type https://alirezah.net it redirects to http://alirezah.net. how can i fix it? I wanna use cloudflare ssl service but this happens. I tried to edit htaccess but it doesn't help

like image 395
Alireza Avatar asked Jan 29 '26 02:01

Alireza


1 Answers

If your website is hosted on Directadmin, then follow these steps:

  1. Log in to your DirectAdmin control panel
  2. Click on Domain Setup
  3. Click on the domain name you wish to change this for
  4. Choose the Use a symbolic link from private_html to public_html - allows for same data in http and https checkbox.
  5. Note the warning message - anything in private_html will be removed, so be sure you do not have content left here that you want to keep.
  6. Accept the warning notice and you are now pointing your private_html directory to the public_html directory.
like image 53
R‌‌‌.. Avatar answered Jan 30 '26 23:01

R‌‌‌..



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!