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!

Relocation of domain home

Discussion in 'General Discussion' started by epanagio, Sep 6, 2013.

  1. epanagio

    epanagio Well-Known Member

    Joined:
    May 26, 2012
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    58
    cPanel Access Level:
    Website Owner
    I have a domain that that is hosted in

    /home/account/public_html

    I have to move the data to

    /home/account/public_html/wordpress/

    How do I redirect the site's home without having a file to do the redirecting?

    <edit>
    By that I mean that instead of going to:

    www.domain.com/wordpress

    I would like it to be

    www.domain.com

    and it will display the contents of

    /home/account/public_html/wordpress/

    I hope I made it clear.
     
    #1 epanagio, Sep 6, 2013
    Last edited: Sep 6, 2013
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Hi,

    Copy the data to the /home/account/public_html/wordpress folder and then change the documentroot in httpd.conf and restart the apache service.

    Regards,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. epanagio

    epanagio Well-Known Member

    Joined:
    May 26, 2012
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    58
    cPanel Access Level:
    Website Owner
    I have the data in /home/account/public_html/wordpress

    I added a virtual host where
    When I go to <domain name here> it takes me to <domain name here>/wordpress

    I do not have a redirect (I had one and removed it) and I restarted httpd.

    Any suggestions?
     
  5. epanagio

    epanagio Well-Known Member

    Joined:
    May 26, 2012
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    58
    cPanel Access Level:
    Website Owner
    After clearing the cache it looks like apache's virtual host is not working properly. I will go to the apache area and get that resolved.

    Thanks.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    The following post should be useful to you:

    Modifying the "documentroot" value

    This is the preferred method over manually editing the httpd.conf file.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Hi,

    Already included the steps to modify the documentroot in /var/cpanel/userdata/cpanelusername/domain.com file, not sure why it was not included in the reply....

    anyways, the issue must have been resolved :)
     
    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