Directory Indexing

Status
Not open for further replies.

betademo

New Member
Messages
7
Reaction score
0
Points
1
Hi, I hope someone can help me.

How can I make my domain to load files from a sub folder and not in the root folder?
I tried adding the website and added the sub folder but when I visit my domain it show domain.com/subfolder/

How can I make it to only show domain.com but the files are from subfolder?

Thanks,
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Kind of confused here. To clarify: are you wanting to make it so that the custom domains you add are pointing to 'public_html/' rather than starting from 'public_html/example.com'? Or are you wanting to have a custom folder for it (so it doesn't have to be named the domain name you add)?
 

AngusThermopyle

Active Member
Messages
319
Reaction score
52
Points
28
If your main domain is whatever.x10host.com, the files are in public_html

If you want to add a new site, whatever.org and want the files to be in public_html/whatever you:

a. Add whatever.org as an add-on domain -- not as a parked domain
b. When adding whatever.org via CPanel, you will notice that it automatically fills in the "Document root" field to public_html/whatever.org .... edit that to public_html/whatever (or whatever you want)
 

betademo

New Member
Messages
7
Reaction score
0
Points
1
Hi, Thanks for your response =)

I want to point whatever.x10host.com to read files in a sub folder and not in the root folder

Does free account have this option?

Thanks
 
Status
Not open for further replies.
Top