Install in one directory, site in another (2 posts)

  1. JJ84th
    Posted 3 years ago #

    Hi, I want my install to be in one location (site.com/install) - which it is, but my site to be in another (site.com/staging) as I have a holding page up at the root (site.com) currently.

    I have tried the process found in 'Using a pre-existing subdirectory install' with the following actions:
    In General:
    - WordPress Address (URL) - kept as site.com/install
    - Site Address (URL) - changed from site.com/install to site.com/staging
    In Cpanel:
    - Copied index.php and .htaccess from /install into /staging
    - Moved wp-config.php into /staging
    - Updated /staging index.php file line ('./wp-blog-header.php') to ('/install./wp-blog-header.php')

    But when done and saved I get an error page at site.com/staging saying wp-blog-header.php cannot be found and /install is not available either.

    I know these instructions are meant for moving into the root not into another directory (which will be done on staging completion). Does anyone have any advice on what else needs to be updated and if this is even possible?


  2. keesiemeijer
    Posted 3 years ago #

    Why not create a folder "staging" in your root folder and put all the WordPress files in there? And when done staging copy the index.php and .htaccess to the root, move your wp-config.php also and change your root index.php. What is the benefit of having a /install folder when visiting the site at site.com/staging?
    The problem here is that your holding page is probably using index.php/html also.

    Try this:
    Switch the home and site url:
    - The "Home" setting is the address you want people to type in their browser to reach your WordPress blog.
    - The "Site URL" setting is the address where your WordPress core files reside.

Topic Closed

This topic has been closed to new replies.

About this Topic