Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

subdomain not redirecting

Discussion in 'General Discussion' started by banosr, Nov 13, 2009.

  1. banosr

    banosr Registered

    Joined:
    Nov 11, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    I created a subdomain sub.main.com but instead of being able to access it at main.com/sub it redirects to main.com

    I have seen some threads about this but haven't found an answer yet

    I will appreciate any help you may give me. I am also managing the server but I am a complete Newbie. This is the first account I create and the firs linux server I manage.

    Thanks
     
  2. thewebhostingdi

    thewebhostingdi Well-Known Member

    Joined:
    Jan 10, 2008
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    66
    Kindly check the apache error logs for the redirection. You will find the exact reason regarding the redirection. You can get the error logs from /usr/local/apache/logs/error_log.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    68
    Also, check what is the document root for the sub-domain you created and if there are any redirect rules set in the .htaccess file under your public_html directory.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice