Strange addon domains problem...

Discussion in 'Apache' started by bluemouse2, May 3, 2007.

  1. #1
    Some of my domains are behaving strange.

    I have several addon domains and when I point to their directories this is what happens:

    Example:

    Pointing to addon1.com/directory goes to addon1.domain.com/directory

    Pointing to addon2.com/directory goes to addon2.domain.com/directory

    where
    addon1 and addon2 are addon domains and domain.com is the main domain for my account

    so basically my addon domains are acting as redirections instead domains...

    Please help... is there a .htaccess solution for this?
    The host support can;t help me so far.... strange..
     
    bluemouse2, May 3, 2007 IP
  2. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Try something like this:
    Redirect 301 /directory http://addon1.domain.com/directory
    Code (markup):
    Put the htaccess file in the root of addon1.com.
     
    VimF, May 3, 2007 IP
    bluemouse2 likes this.
  3. bluemouse2

    bluemouse2 Well-Known Member

    Messages:
    4,055
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    185
    #3
    thank you, but the problem is that this happens with any directory... how do I make this rule general?
     
    bluemouse2, May 3, 2007 IP
  4. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #4
    Ok, I think this should work:
    Redirect 301 / http://addon1.domain.com/
    Code (markup):
    Again, put it in the root of addon1.com
     
    VimF, May 3, 2007 IP