brookie
Member
Posted 3 years ago #
Hi,
I want to install WP in a subdirectory to build and test a site while the live static HTML works in the root directory.
When the user is ready to go live I want to move the WordPress site over the static site in the root.
What is the best way to do that?
Thanks.
Assumming you installed WordPress in a folder called blog--to 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.