Subdomain redirection question

Discussion in 'Site & Server Administration' started by Skeleton, Dec 23, 2005.

  1. #1
    I have a subdomain like http://sub.domain.com/ which is pointing to http://www.domain.com/sub

    I had created this from cPanel and it works. But when I entered http://sub.domain.com/ to address bar and hit enter the address also changes to http://www.domain.com/sub

    The problem is that I want it still remain as http://sub.domain.com/
    What should I do ? (mod_rewrite ?) Thanks in advance.
     
    Skeleton, Dec 23, 2005 IP
  2. Bliss

    Bliss Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It seems like you've configured a redirect, not a subdomain.
     
    Bliss, Dec 29, 2005 IP
  3. Integrov

    Integrov Guest

    Messages:
    79
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can redirect it to your main website and let index.php take care of the redirections.

    see the knowledge base of brinkster.com
     
    Integrov, Dec 31, 2005 IP
  4. Bruzli

    Bruzli Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just remove the redirection for your created submain and it will work.
     
    Bruzli, Jan 3, 2006 IP
  5. goalkick

    goalkick Peon

    Messages:
    292
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I have godaddy and i had the same problem, i just had to "MASK" the sub domain.
    Something like that.
     
    goalkick, Jan 4, 2006 IP