WordPress.org

Ready to get started?Download WordPress

Forums

Easiest way to build a "staging area" (7 posts)

  1. jbickers
    Member
    Posted 7 years ago #

    OK, this may be a dumb question, but I'd love verification before I take this step ... about to build a rather complex WP site for a client, and want to allow them to see it before it goes live. In the meantime, they want their existing site to stay as it is.

    Is the easiest way to do this to just make a subdirectory (/newsite) on their domain, and put it there? And if so, once it's approved, do I simply change the URL of the homepage in the admin and move the folders/files down one level to make it "live"? Or is there a better way to do the "staging area" thing on an existing domain?

  2. MichaelH
    Member
    Posted 7 years ago #

    If the "newsite" folder is installed in your web-root you don't have to do much to make it available as http://www.myclientsdomain.com.

    1. Login and in Options->General, Blog address (URL), delete /newsite from the end of that URL. The WordPress addres (URL) should still have /newsite at the end of that URL.

    2. Put this index.php at the same directory level (your web-root) as the newsite folder

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./newsite/wp-blog-header.php');
    ?>

    3. Update your permalinks.

  3. jbickers
    Member
    Posted 7 years ago #

    MichaelH, does that strategy hide the fact that they're in a directory called, for instance, /newsite? Or does it just redirect them to /newsite?

    And as for step 3 - can you be more specific as to how I need to update them?

  4. whooami
    Member
    Posted 7 years ago #

    3. options --> permalinks (in the admin area)

    Its really OK to look around back there, it doesnt bite. And it would be refreshing to see someone that uses the word "client" in a thread manage to do that. :P

  5. jbickers
    Member
    Posted 7 years ago #

    3. options --> permalinks (in the admin area)

    Its really OK to look around back there, it doesnt bite.

    Yeah, I know that part, wiseguy. I'm trying to understand the virtues of leaving the installation in a subdirectory versus moving it down to the root directory. If I do the latter, I don't see how permalinks would need to be changed at all.

  6. moshu
    Member
    Posted 7 years ago #

    a) it is a "wise lady" :)
    b) what MichaelH suggested is described in details here:
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  7. jbickers
    Member
    Posted 7 years ago #

    Thanks moshu ... that is very helpful. Much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic