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.

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:
    8
    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:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    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,
     
  4. epanagio

    epanagio Well-Known Member

    Joined:
    May 26, 2012
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    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:
    8
    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:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    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 :)
     
Loading...

Share This Page