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 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:
    1
    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:
    16
    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.
     
  3. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
Loading...

Share This Page