Read data from a folder in main domain folder (CPanel\WHM)

Posted by Memphis Raines on Pro Webmasters See other posts from Pro Webmasters or by Memphis Raines
Published on 2011-07-29T13:31:57Z Indexed on 2012/03/31 5:41 UTC
Read the original article Hit count: 238

Filed under:

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 ... ?

© Pro Webmasters or respective owner

Related posts about htaccess