πŸš€ Install a WordPress website alongside an already active website

This guide explains how to build a WordPress website using My WordPress website created without overwriting your current website. Two procedures are presented below.

WordPress installation in a second website (of the same hosting)

  1. add a website (it’s free as long as you don’t have 19 others on the same hosting) and name it something like new.yourdomain.tld (Help)
  2. the target of this website must be different from the target of the first website (/new eg) (Help)
  3. install your WordPress website with My WordPress website (Help); the WordPress files will be placed in the folder created in the previous step.

At this point, the main website (yourdomain.tld) ​​is not affected and you can work on the new website new.yourdomain.tld in peace. Both are available in parallel.

When you’re done, you can delete the first website to use the domain name for the new one:

  1. highlight the old site name in the table and click Delete (Help)
  2. add yourdomain.tld as an alias of new.yourdomain.tld (Help)
  3. swap the alias with the main domain (Help)
  4. remove new.yourdomain.tld (now alias) (Help)
  5. update the main URL in WordPress in the dashboard of the My WordPress Site tool (Help)

Alternative (requires more technical knowledge): Install WordPress in a subfolder

  1. as the site directory, specify the folder of the future WordPress site (Help)
  2. install your WordPress website with My WordPress website (Help).
    The WordPress files will be placed in the folder created in the previous step
  3. enter the previous target directory of the website again (by default: /web)

Now the main website (yourdomain.tld) ​​should be available again. However, the WordPress website is no longer available; therefore, the file path in the MySQL database of the WordPress website needs to be changed manually:

  1. create a new MySQL user and give him access rights to the database automatically created during the installation of the WordPress website (Help)
  2. login to phpMyAdmin with the username created in the previous step (Help)
  3. in the database of the WordPress site, edit the table wp_options and replace the values ​​of the entries siteurl and home with the URL address of your WordPress website (in this example: yourdomain.tld/wordpressblog).

Now your main website and your WordPress website should be available again. The WordPress administration has the address www.domain.xyz/wp-admin

Link to this FAQ: