Install wordpress in backend with Existing html website alive

WordPress in Sub Directory

Just install your WordPress site next to your HTML site in a subdirectory such as /mysite.

While you are working on the WordPress site, it would be found in https://example.com/mysite.

Then once you are ready to switch to the WordPress site, you can just change the site url to https://example.com in the WordPress settings. This will then run your WordPress site via that same URL 🙂

enter image description here

enter image description here

Safty Check

  1. If you’ve not used local URL’s in your custom links, you will have to update these manually when you change the WordPress Site URL.

  2. After you have changed your URL to the root URL, it is best to scan the site and database to make sure no old URL were left unchanged. There are many good plugins and scripts that can do that. Velvet Blues Update URLs is one I use when transferring sites to new domains or changing from HTTPS.