Setting up WordPress for development
If you’re like me, chances are, you won’t be building and launching a site in a day. Websites take time to set up, design, populate with content and test. As a web designers you will probably have clients who fall in one of these situations.
- The client has a site, but requires a new one;
- The client has nothing and needs a site.
Regardless of the situation, it’s best to develop the site in a folder that’s hidden from view. I usually like to develop my site in a wp folder. When people navigate to the site I’m working on they will see the current site or a Coming Soon page at www.domainname.com and the WordPress site in development will be at www.domainname.com/wp.
Another good thing to do while you are developing a site, is to set Privacy Settings to the second option “I would like to block search engines, but allow normal visitors“.
When you are ready to launch, giving WordPress its own directory takes only a few minutes.
- Navigate to Settings > General in your admin. Change the Site url from www.domainname.com/wp to www.domainname.com. DO NOT TOUCH WordPress url. Hit Save.
- In your FTP, navigate to your wp folder and download the
index.phpfiles. (Uploading them to your desktop is fine. You won’t need to keep these once you are done.)
- Open the index.php in your text editor and change the line that says:
- Save the file.
- Delete the old site from your root folder (making a back up might be a good idea) or the Coming Soon page.
- Upload this revised
.htaccessfiles to your root folder.
That’s it. You should now be able to see the site at www.domainname.com and access the WordPress admin at www.domainname.com/wp.
Don’t forget to change the privacy settings back to the first option, allowing Search engine to find your site.
These instructions are also found in the codex.