Can I Have Two Wordpress Sites on One Domain
In this tutorial , I am going to exist addressing two things:
ane. How to move your wordpress.com site to wordpress.org.
two. How you lot can import large files in wordpress via wp-cli, every bit this is the fastest style to import big files similar exported xml files, etc.
To movement a wordpress.com site to wordpress.org, we will first export the wordpress.com website after which we will apply our ssh terminal/commandline via WP_CLI to import the exported xml file. Using the wp-CLI(ssh/terminal) big xml imports will run faster and successful.
Login in to your wordpress.com website, go to your dashboard. On the dashboard side bill of fare, click on tools so export after that you click consign all
Wordpress.com will mail you a download link for your exported site that has a seven days lifetime earlier it expires. Download the file from your mail then unzip it, you will come across a dot xml file. The xml file has all your posts, images, comments etc from the wordpress.com site.
Next step,…
Importing xml file using WP-CLI via SSH on wordpress.org site
In this section, we are going to setup a fresh wordpress installation on a web host.
I want to assume you already have a web hosting subscription if not, you tin can check out my recommended webhosting platform, Interserver (NB: I actually use their service and my experience has been wonderful).
If you are non familiar with installing wordpress, you tin can check this guide to do so.
Here is the thing, at that place are actually ii ways to go about this…
- Using the wordpress import plugin via the self hosted wordpress admin area
- Using WP_CLI
This tutorial is basically for the 2d method, why ? Once more, this is faster, no php time outage, and y'all are sure your import will exist completed successfully.
Lets begin the procedure,…
First login to your webhosting cpanel, wait for file-manager tool (circled red in the screenshot below); It may vary in position depending on your cpanel interface design.
Click on the file-managing director, y'all should exist redirected to an interface where you can encounter a couple of folders.
You do remember the xml file we downloaded from mail and unizipped right? Nosotros volition be uploading that file to the root folder of our wordpress installation.
A typical wordpress root binder is located in the public_html
named folder, or sometimes,your root folder location might exist different but I am certain that your wordpress root binder will incorporate folders and files like the one in the screenshot below.
The file circled purple is actually an exported wordpress.com exported site. Notice that the file has a dot xml
file extension. **The ane used in this example is about 14MB with oabout 2k+ information… Quite huge…any way, back to the matter ** 😁
**
Next, open ssh Concluding,
**…
Now that the exported file has been uploaded, look for the ssh terminal tool listed on the cpanel section then click to open up it up,
To access the root folder for our wordpress installation where the xml file is located, we'll cd
in the root directory via the ssh/last. Hey…only this entirely depends on your folder structure merely generally information technology should await like this below :
cd domains/yourdomain.com/public_html
In my own situation, for my website, jovialcore.tech this is how information technology looks:
cd domains/jovialcore.tech/public_html
the folder structure is like that in most cases
**
Lets install the wordpress importer plugin.
** Type the following command in the terminal.
wp plugin install wordpress-importer --activate
After that, lets import the xml file.
Type the following command in the concluding followed by the file proper name we uploaded initially in the root binder of our wordpress installation, and so click enter.
wp import wordpress.2020-04-14.000.xml --authors=create
Annotation the --authors=create
flag: information technology is used past wordpress during the import to automtically create a website author for each posts typically based on the website domain name.
Yaah..your import should begin immediately lke and then:
It could have some fourth dimension depending on the size of the file, when the import is complete, the status should should wait like this:
We are done with the import, go dorsum to your cpanel file managing director and delete the xml
file nosotros uploaded.
Refresh your website to see the changes.
That should be all….
Decision:
Using WP-CLI approach via last is significantly better over admin interface with the import plugin as you don't accept php time outage bug, large files are imported successfully, etc.
Reach out to me on linkedin or twitter. Y'all tin send me a mail chidideveloper@gmail.com
Source: https://dev.to/jovialcore/fastest-way-to-migrate-your-site-from-wordpresscom-to-wordpressorg-3jjj
0 Response to "Can I Have Two Wordpress Sites on One Domain"
แสดงความคิดเห็น