301 redirect and htaccess file

Discussion in 'PHP' started by kschill, Feb 12, 2006.

  1. #1
    Hello all,
    Probably a simple question for most gurus which I am not. I'm trying to do a 301 redirect on a domain I own but want to leave the subdomain alone.

    301 redirect /index.php http://www.mydomainname.com/

    is what I have. I type in the subdomain and everything still goes to the new one. Can someone tell me how to leave my subdomain alone?

    Thanks in advance!
     
    kschill, Feb 12, 2006 IP
  2. eKstreme

    eKstreme Guest

    Messages:
    131
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    How do the subdomains really map to your hosting? If you have something like sub.example.com being hosted as a directory of example.com, then putting .htaccess in the root of example.com would apply it to the subdomains.

    Tell us more info please :)
     
    eKstreme, Feb 13, 2006 IP