Sub.domain.com to domain.com

Using a single web hosting account to host multiple sites

Sub.domain.com to domain.com

Postby create.tistiy » Tue Jul 14, 2009 6:58 am

Hello all...

I have a sub domain called

sub.domain.com

I would like that to mask the main domain at

domain.com


AKA.. when someone goes to sub.domain.com they will see the contents of domain.com


Any thoughts???
create.tistiy
 
Posts: 4
Joined: Fri May 29, 2009 9:17 am

Postby richardk » Wed Jul 15, 2009 12:04 pm

What happens when you currently visit sub.example.com? What file/directory do you see?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby create.tistiy » Thu Jul 16, 2009 11:35 am

i see the subdomains content.... which is a folder on the root level
create.tistiy
 
Posts: 4
Joined: Fri May 29, 2009 9:17 am

Postby richardk » Thu Jul 16, 2009 1:26 pm

i see the subdomains content.... which is a folder on the root level

You see example.com/sub?

Do you get to choose the directory? If you can try setting it to / or leaving it empty. If you can't you should ask your host about it, suggesting that they could set up a Symbolic link.

To do this with mod_rewrite would require mod_proxy and would be inefficient compared to setting the sub domain's document root correctly or a symbolic link.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby create.tistiy » Fri Jul 17, 2009 6:11 am

got it working i could change the directory of where the subdmain lived.. thanks for your help..
create.tistiy
 
Posts: 4
Joined: Fri May 29, 2009 9:17 am


Return to Domain Handling

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests

cron