• 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter jbickers

    (@jbickers)

    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?

    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. 😛

    Thread Starter jbickers

    (@jbickers)

    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.

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

    Thread Starter jbickers

    (@jbickers)

    Thanks moshu … that is very helpful. Much appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Easiest way to build a “staging area”’ is closed to new replies.