greencode
Member
Posted 1 month ago #
My client has a website already but I am now about to start developing a new site for them. What I usually do is use Private WP to add a simple login to the home page (whilst the site is in development) but what I'd like to do with this site is to have their old site running whilst I develop their new site in the background.
My question is how do I do this i.e. I'm unable to see what I'm building whilst their other site exists at the same url?
Install and develop on your local computer (see Installing WordPress) and then move to your client's host (see Moving WordPress)
or
use the technique in Giving_WordPress_Its_Own_Directory then when you go live put the appropriate index.php in you web-root folder.
greencode
Member
Posted 1 month ago #
Thanks for this. If I use the 2nd option (which is the one best suited for me) then surely I won't be able to test the site as it gets developed because when I choose to view the site it will show me the index.html file currently at root?
Assuming you install WordPress in a folder called blog, you would 'test' the site as mydomain.com/blog.
When ready to go live, ando 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.
You would also have to delete that index.html file.
greencode
Member
Posted 1 month ago #
Thanks once again for this - will definitely make things a lot more straight forward when developing sites for clients that already have a site and don't want to pull that down until their new one is ready.