Read data from a folder in main domain folder (CPanel\WHM)
- by Memphis Raines
I have defined a host in my CPanel\WHM server and put all my websites under one host account. The host Main Domain is domain.com, and all other websites are Add-on Domains:
domain.com
--folder
--domain1
--domain2
--domain3
...
The thing I need is that when calling domain.com in browser, the server read files from another folder. for example when call http://domain.com it shows us http://domain.com/folder BUT I don't mean a redirection, I want server do this in background without showing visitors the real path.
I couldn't do this with Domain WildCard Redirection because it got error.
How can I do this? With htaccess or ... ?