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.

redirect ALL access to ALL third name domain (*.site.com)

Discussion in 'General Discussion' started by cmedia, Nov 14, 2008.

  1. cmedia

    cmedia Member

    Joined:
    Nov 14, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    i want to redirect ALL access to ANY possible third name domain...

    Example: sub1.site.com sub2.site.com sub3.site.com/page/file.htm etc etc...

    Have to load a url i will specify...

    Is this possible with cpanel?
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You can set appropriate redirect rule in your domain's .htaccess file.
     
  3. cmedia

    cmedia Member

    Joined:
    Nov 14, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Mhh, for what i know about htaccess, the htaccess redirect will work for user who will load subpager/subdirectory... NOT with third name domain...

    I mean i can set up only the main domain: site.com

    i can't re-setup the 700 third name domain name.site.com so i need a redirect for ALL the possible subdomain *.site.com
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I know we recently added support for wildcard subdomains. Like any new cPanel 11 functionality, you must be using the x3 theme to make use of this.

    Proceed as if you were adding a normal subdomain. However, for your subdomain, enter an asterisk: *
     
  5. cmedia

    cmedia Member

    Joined:
    Nov 14, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Good...

    And i will be still able to setup and use other third name domain? and the redirect will work only for the third name domain i dont have set up?

    for exsample:

    i have www.site.com already set up, i add subdomain using * then i add another subdomain like "testtest.site.com"...

    testtest.site.com will work normally, like will work normally www.site.com and the redirect still will work for all other possible third domain name, right?

    thank you.
     
Loading...

Share This Page