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.

subdomain redirect issue

Discussion in 'General Discussion' started by lloyd252, Mar 20, 2013.

  1. lloyd252

    lloyd252 Member

    Joined:
    Sep 24, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I have a subdomain named: easylife.mydomain.com with a document root of /public_html/ezlife.

    This was setup before me and it's quite odd how it was handled. Most people access this subdomain by going to http://mydomain.com/ezlife. And it works perfectly.

    However, if someone goes to easylife.mydomain.com everything breaks since the site was designed (CSS, etc.) to support the domain structure mydomain.com/ezlife.

    So my question is how can I redirect people who go to easylife.mydomain.com to mydomain.com/ezlife?

    I cannot add a redirection in cpanel as it gives me a fatal error.

    Is there some other way?

    Thanks.
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    1st thought is:
    1. remove the subdomain.
    2. add it again, but use another directory
    3. create a redirect easylife.mydomain.com -> http://mydomain.com/ezlife
     
  3. lloyd252

    lloyd252 Member

    Joined:
    Sep 24, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Easy enough. Worked perfectly. Thanks.
     
Loading...

Share This Page