The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Re-directing from a non-existent subdomain?

Discussion in 'General Discussion' started by niya, Mar 26, 2007.

  1. niya

    niya Registered

    Joined:
    Mar 26, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    Hi, I did a couple of searches for this, but I couldn't find anyone who had this particular question :)

    I just recently started to get more familiar with my cpanel so my question may seem very very basic ;)


    I just recently moved some files to a new subdomain and I set it up permanently so that all visitors would be directed to the new url. My question is, does the old subdomain still need to be there in the directory in order for the re-direct to work? If I delete it, will the re-direct be deleted as well?

    Any help is appreciated. Thanks :D
     
  2. Kailash1

    Kailash1 Well-Known Member

    Joined:
    Nov 27, 2006
    Messages:
    252
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    hi niya,

    It would require the old subdomain. If you will delete it, the redirection will no longer work.

    Thanks,

    Kailash
     
  3. niya

    niya Registered

    Joined:
    Mar 26, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    Thanks, Kailash! Glad I didn't delete it :)
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    I would just remove the old subdomain and then add it back again
    as a "ServerAlias" on the account where you want to redirect.

    Alternatively, you could setup wildcard DNS for the domain

    Just a little bit cleaner way of doing things
     
Loading...

Share This Page