subdomains htaccess question

Discussion in 'Apache' started by Success, Sep 3, 2009.

  1. #1
    How to detect AND rewrite (RewriteRule)

    SubSubDomain.SubDomain.domain.com

    to

    NewSubSubDomain.SubDomain.NewDomain.com


    SubSubDomain Becomes a NEWWORD NewSubSubDomain

    SubDomain remains the same.

    domain.com is changed to a NewDomain.com

    Both SubSubDomain & SubDomain are always changing.

    For SubSubDomain, I need to change it to a new word. The old SubSubDomain is always changing but the new NewSubSubDomain is a constant in the new url.

    For SubDomain, it is always changing but I just need to capture it and put the same SubDomain into the new url.

    All file structure after domain.com will be the same on new domain.

    For example,

    Old cellphone.nokia.domain.com/?subid=3g
    New newcellphone.nokia.newdomain.com/?subid=3g


    Old camera.cannon.domain.com/?subid=dslr
    New newcamera.cannon.newdomain.com/?subid=dslr

    Only those in bold need to change.
     
    Success, Sep 3, 2009 IP