WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I want to replace an html site with a wordpress site without taking my site down (3 posts)

  1. needforname
    Member
    Posted 4 years ago #

    Any help would be greatly appreciated. I have a regular html website that I would like to replace with a wordpress site. The site name will be the same, I just would rather have the site run through wordpress.

    An easy way to do this would be to delete all my original site files, install wordpress in the same directory and be on my way. The problem is that I can't afford to have my original site down for a week while I'm building the new one.

    Is there an easy way around this? The only thing I can think of is to buy up a test domain name and create the wordpress site there, then move it over to the original site location when I am finished. This seems like a bad way to work because all of my links and everything will be broken when I change locations.

  2. MichaelH
    Member
    Posted 4 years ago #

    Sure, put wordpress in a sub-folder (e.g. blog) of your web-root and access it as yourdomain.com/blog.

    Then when ready to go live, to make WordPress available at http://yourdomain.com in Settings->General, change the Blog address (URL) to http://yourdomain.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 by visiting Administration > Settings > Permalinks and clicking on Save Changes.

  3. needforname
    Member
    Posted 4 years ago #

    Wow, thank you so much Michael. Seriously...you saved me a lot of stress and your explanation seems simple enough.

Topic Closed

This topic has been closed to new replies.

About this Topic