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.

Correct way for doing this (redirect subdomain?)

Discussion in 'General Discussion' started by Fergo, Jan 4, 2009.

  1. Fergo

    Fergo Member

    Joined:
    Dec 5, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hey everyone.

    Here's my situation: I have a reseller account with WHM and this domain accounts inside it:

    gameartbrasil.net (with a domain leveldesign.com.br parked on it)
    labs.leveldesign.com.br

    I want to rename the "labs.leveldesign.com.br" to "labs.gameartbrasil.net", but there are a lot of mirrors in the web the point to files hosted at "labs.leveldesign.com.br" and I don't want those links to be broken.
    Is it possible to make something like this:

    1) Rename labs.leveldesign.com.br to labs.gameartbrasil.net
    2) When the user access a file like "http://labs.leveldesign.com.br/files/file.zip" it redirects to "http://labs.gameartbrasil.net/files/file.zip"

    ?

    How to do this?

    Thanks in advance,
    Fergo
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Subdomain's won't be renamed like this, you will have to rename the entire top level domain 'leveldesign.com.br' to 'gameartbrasil.net' which will also rename all the subdomains not to mention loss of email accounts.
    I suggest you create a subdomain 'labs.gameartbrasil.net', this should create the subdomain with the same document root as labs.leveldesign.com.br. This way both of your url/files/file.zip will open the same thing.
    As far as redirects, you can apply any redirects from cPanel under "cPanel >> Domains >> Redirects" where you can redirect domains/subdomains.
     
  3. Fergo

    Fergo Member

    Joined:
    Dec 5, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for you reply Howard.

    I already renamed the leveldesign.com.br account in WHM to gameartbrasil.net (and then parked the domain leveldesign.com.br in gameartbrasil.net). Despite renaming the leveldesign.com.br (and it does not exist anymore as an WHM account), the labs.leveldesign.com.br still works fine. Remember that the subdomain is not configured as a common subdomain in cPanel, but it's a standalone account in WHM.

    Here's the topic where DavidG tells me that the accounts in WHM are independent, even if it's a subdomain:
    http://forums.cpanel.net/showthread.php?t=91249

    Fergo
     
  4. Fergo

    Fergo Member

    Joined:
    Dec 5, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Anyone? :(

    Fergo
     
Loading...

Share This Page