simple htaccess question...

Discussion in 'Apache' started by openfire, Oct 31, 2006.

  1. #1
    I have a site that has an htaccess file with only one line of code in it:

    redirect 301 /index.html http://www.mysite.com/forums/index.php

    So, when someone types in www.mysite.com, it redirects to the forums.

    NOW...

    I added some subdomains in the form of www.sub1.mysite.com, www.sub2.mysite.com, etc...

    When I type in www.sub1.mysite.com, it goes straight to www.mysite.com/forums, which I don't want.

    How can I alter the htaccess so that only www.mysite.com and not the subdomains redirect to the forums?

    Any help would be greatly appreciated!
     
    openfire, Oct 31, 2006 IP