Forums

How to create test Wordpress site in subfolder then take it live? (4 posts)

  1. douglaseye
    Member
    Posted 4 months ago #

    A design and structure question:

    1/ I am wanting to design a test site for a web magazine under developmemt at www.AppalachiaToday.com. I do NOT want the design to go live at that address, but I wish to experiment with the content and look by mocking up the site in a subfolder with no links outward so it is not spidered by Google or anything

    2/ So, I essentially mock up the site but in a subfolder called 'beta_site.' I create a pretty elaborate site there with 25-some pages.

    3/ So the time is ripe, the beta site looks good and I want to drop it all into the root level of the site so it goes live at AppalachiaToday.com

    4/ Being a code-newbie, is there a quick and easy way to change all the links in that sub-folder to the root level of the site so it all works properly when removed from that folder?

    5/ Or, I could design the site in a sub-folder at my own, separate web domain and then when it is ready point my magazine's web address -- appalachiatoday.com - to that subfolder? Will the site load slower if I do it that way?

    Or is there a better way to develop a test of an elaborate Wordpress site before taking it live and maintaining all the internal links?

    Thanks for any insights
    Douglas Eye

  2. MichaelH
    moderator
    Posted 4 months ago #

    1-4 - I'd put WordPress in the sub-folder called blog and do your 'work'. Then when ready to go live, and make WordPress available at http://mydomain.com just change in Settings->General, the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the blog folder)

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

    Then update your permalinks in Settings->Permalinks.

    If you choose #5 instead, see Moving WordPress.

  3. adiant
    Member
    Posted 4 months ago #

    I've tried both approaches:

    (1) develop a Web Site using WordPress in its permanent subfolder, then make it live by changing the Blog address, etc. You will also have to remove any existing index.html file in the Root Directory

    (2) develop on a test account/web site, then copy it over to the "real" domain name.

    The nice thing about (2) is that you end up with a Test Site, which you can periodically update from the real site. Test Sites are, in my mind, essential to avoid major outages of your real site whenever technical changes are required, most notably version upgrades of WordPress or any plug-in.

    Whichever method you use, use href="index.php?page_id=40" for all your internal links within your WordPress site. Or the equivalent for Posts, Pictures, etc. That will make your site "portable".

  4. Shane G
    Member
    Posted 4 months ago #

    Hi,

    First develop a wordpress and test at subfolder of your domain and then move it to root folder to remains its live..on how to move wordpress refer this article:

    http://codex.wordpress.org/Moving_WordPress

    Thanks,

    Shane G.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.