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)
- 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)
- the target of this website must be different from the target of the first website (/new eg) (Help)
- 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:
- highlight the old site name in the table and click Delete (Help)
- add yourdomain.tld as an alias of new.yourdomain.tld (Help)
- swap the alias with the main domain (Help)
- remove new.yourdomain.tld (now alias) (Help)
- 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
- as the site directory, specify the folder of the future WordPress site (Help)
- install your WordPress website with My WordPress website (Help).
The WordPress files will be placed in the folder created in the previous step
- 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:
- create a new MySQL user and give him access rights to the database automatically created during the installation of the WordPress website (Help)
- login to phpMyAdmin with the username created in the previous step (Help)
- 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: