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!

Cpanel and wordpress

Discussion in 'General Discussion' started by homerwsmith, Oct 18, 2013.

  1. homerwsmith

    homerwsmith Registered

    Mar 19, 2011
    Likes Received:
    Trophy Points:
    Dear Gentle Folk,


    User has existing domain (say pointed to /home/artmat/public_html/index.html.

    They want to create a new site using wordpress on the same domain, but want the old site
    to work until the wordpress site is ready.

    When the new site is ready, they want to go to the wordpress index.php but NOT show
    the word wordpress in the URL, which happens if wordpress is in public_html/wordpress.

    If wordpress is in the root directory ALONG WITH the old site, it USED to work that the user could call
    to see their wordpress site in progress, and to see the original one. But this no longer works,
    seems to recall and thus ends up calling

    Originally when the wordpress site was finished, we could erase the index.html of the original site, and
    the server would find the index.php from wordpress and voila, the new site would be online. This no longer works.

    Thanks in advance to all you guys out there.

    Homer W Smith
  2. Tom Risager

    Tom Risager Well-Known Member

    Jul 10, 2012
    Likes Received:
    Trophy Points:
    Copenhagen, Denmark
    cPanel Access Level:
    Root Administrator
    The word "wordpress" will not appear in the URL once you are ready to set the new site live. Just follow the instructions here: Giving WordPress Its Own Directory « WordPress Codex (under "Using a pre-existing subdirectory install")

    This is a common WordPress question, not specific to websites running on cPanel.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can try adding the following entry to the .htaccess file in your public_html directory:

    DirectoryIndex index.html index.php
    Simply remove this line when you are ready to have the index.php file load first, as it appears your hosting provider has configured that as the priority over index.html.

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

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