subdomain.domain.com => domain.com

Using a single web hosting account to host multiple sites

subdomain.domain.com => domain.com

Postby mechatama » Mon Feb 26, 2007 4:25 pm

I tried to park a subdomain on top of my main domain in cpanel but it wont let me. So i decided to create the subdomain, which then creates a folder in my main directory.

Is it even possible to point subdomain.domain.com to the main directory via mod rewrite? since i dont want this to be a redirect.
mechatama
 
Posts: 1
Joined: Mon Feb 26, 2007 4:20 pm

Postby richardk » Tue Feb 27, 2007 9:35 am

Only if you have mod_proxy available. In the sub domain's document root
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^(.*)$ http://www.domain.com/$1 [P,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 34 guests

cron