Masking subdomain/domain???

Discussion in 'Apache' started by 123GoToAndPlay, Jun 19, 2008.

  1. #1
    This is the situation:

    - i have mydomain.com as headaccount with a couple of subdomains
    - now i want subdomainA.com as headaccount.

    1 How do i mask mydomain.com so it reads subdomainA.com all of the time in the urladdress???

    2/ I also want to use htaccess 301 redirect to subdomainA.com for the already indexed mydomain.com pages??

    @2, i have tried:
    
    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^mydomain.com [nc]
    rewriterule ^(.*)$ http://www.subdomainA.com/$1 [r=301,nc]
    
    Code (markup):
    But it doesn't work?

    btw i am using web-cp.net to control my semi private server
     
    123GoToAndPlay, Jun 19, 2008 IP