Author Topic: Change Domain path to subfolder?  (Read 10 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Change Domain path to subfolder?
« on: December 05, 2025, 09:17:48 PM »
For some reason when you create an account in cwp it does NOT give you that accounts domain listed under, wait for it, "DOMAINS". I am clueless as to why it does not, cpanel and plesk do but anyway, I can NOT see domains under, wait for it, "DOMAINS" in the cwp user panel EITHER. Intentional or just clueless coder who did not include these features??? We will never know.

I need to change the path of the MAIN domain of an account from /home/username/public_html to /home/username/public_html/public for a php script I bought. You canly do this in the cwp user panel for "SUB DOMAINS"...DOH!!!

Anyway, does anyone have an idea on how you can do this? Thx in advance!!!

Offline
**
Re: Change Domain path to subfolder?
« Reply #1 on: Today at 01:10:13 AM »
Might seem like a dumb question can't you just update the path that the PHP script points to?

Would be an easy fix and you wouldn't have to mess around with 301 redirects or man handling Virtual Host files
Web Design, Development & Web Hosting
https://6sense.com.au

Offline
**
Re: Change Domain path to subfolder?
« Reply #2 on: Today at 01:24:19 AM »
Might seem like a dumb question can't you just update the path that the PHP script points to?

Would be an easy fix and you wouldn't have to mess around with 301 redirects or man handling Virtual Host files

It would most likely require re-writing php code in a lot of files of the script. It's not a selectable or changeable setting available.

Offline
*****
Re: Change Domain path to subfolder?
« Reply #3 on: Today at 01:58:18 AM »
Set the desired DocumentRoot in the vhost conf file for your domain. I have to do this for a Drupal site that uses /home/username/public_html/web as the document root.