How to Deploy Your DesktopServer Website to a Live Host in a Subdirectory

There are three basic methods for setting up a live hosting environment:

  • Top Level Domain (
  • Subdomain (
  • Subdirectory (

We recommend setting up a live hosting environment via the top level domain or a subdomain. However, when you need to deploy your local website to a subdirectory, DesktopServer’s direct deploy method can work in these instances. It requires that the live site directory structure is identical to that of your local environment and that WordPress is installed in the Top Level Domain. But, sometimes, this is not the case. 

In the video tutorial and instructions, we show you how to take a locally developed WordPress website created with DesktopServer and deploy it to a subdirectory on your live domain.

For those of you that would like step by step directions, we have included those as well:

  1. Create WordPress 1-click install
  2. Install to subdirectory of choice
  3. Note database name
  4. Verify that Database Table Prefix matches local prefix table
  5. Verify installation
  6. Delete wp-content directory and all its contents in newly created WordPress subdirectory
  7. Start DesktopServer
  8. Export your local site to an archive
  9. In Export As field, enter top level domain name or subdomain only. Do not enter subdirectory
  10. Select Customize Scrubbing Options (!important)
  11. Change “Replace With” field to have /subdirectory name in the scrubbing options
  12. Open archive
  13. copy database.sql to a file location of your choice (note location in which you stored the file)
  14. FTP local wp-content file to live WordPress subdirectory
  15. On Host, click on phpMyAdmin
  16. Select the database of the new WordPress installation.
  17. Delete all tables in database
  18. Import locally stored database.sql that was extracted from newly created archive
  19. Check to be sure site works
  20. Re-save permalinks