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.

How to hide the domain folder name from the main landing page

Discussion in 'General Discussion' started by mandarin14, Jul 1, 2010.

  1. mandarin14

    mandarin14 Member

    Joined:
    Oct 31, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    He installed your site into a directory and you want to move it to the root (yourdomain.com) of your account, or you want to leave it there and just add a forward to make all traffic redirect to that folder instead?
     
  3. mandarin14

    mandarin14 Member

    Joined:
    Oct 31, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    #3 mandarin14, Jul 1, 2010
    Last edited: Jul 1, 2010
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes sure. What's at sitename.com right now, nothing I take it?

    Without knowing more aboutt he site or setup, it would be hard to explain the best way to go, but, it might be as simple as moving the files from tory to another.
     
  5. mandarin14

    mandarin14 Member

    Joined:
    Oct 31, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    There's nothing , just need to hide the /applicationname/ when you access the site.

    It would look like:
    When you first go to the browser, type in www.sitename.com, it will show you :
    www.sitename.com/applicationname.

    What Im trying to do is hide the /applicationname.
     
  6. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Coralville, Iowa USA
    The best way would be just to change the document root for the account to start at /home/user/public_html/applicationname

    The change for the document root would need to be done in /var/cpanel/userdata/username/sitename.com file. If you don't control the machine itself to make changes like that on the server in root SSH, you could ask whoever does have administrative control of the machine to change your document root to that new path (they would need the real path not an example, though, in the request). Once the document root is changed, your site will simply point to that folder instead. It's a better method over using Apache rewrites or redirections to set the new document root instead.
     
  7. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    You have two options to resolve your issue.

    1st) Move all document from www.sitename.com/applicationname/ to www.sitename.com/

    2nd) Chnage document root for your domain sitename.com from
    /home/test/public_html to /home/test/public_html/applicationname

    Note : Change test with your cPanel user name.
     
Loading...

Share This Page