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 displays /public how to remove?

Discussion in 'General Discussion' started by Mohit Shrestha, Jul 28, 2018.

  1. Mohit Shrestha

    Mohit Shrestha Registered

    Joined:
    Jul 28, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    INDIA
    cPanel Access Level:
    Website Owner
    Hello Everyone, I am quite new to C-panel, so bare me if its quite a simple problem.
    I have created a subdomain say xyz.domain.com and redirected it to my AWS elasticbeanstalk DNS .

    Now when hit for my subdomain "xyz.domain.com" it shows "xyz.domain.com/public/"
    I want it to be like "xyz.domain.com" , please help me out !
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    What is the redirection code you set? Can you share it here with us?
    Also, can you check if the document root of the subdomain is properly met and that there is no additional redirection codes in any .htaccess file?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Mohit Shrestha

    As suggested by @24x7server more information on how you're redirecting the domain would be helpful. Also, the domain's documentroot would also be useful in identifying why that's occurring.

    Thanks!
     
    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