E
E
Eugene2016-04-15 15:03:46
WordPress
Eugene, 2016-04-15 15:03:46

How can I add a second site to the Wordpress folder?

Hello.
On the server (access to which is only ftp to a single folder of a single site) the site hangs on WP.
There you need to add a new site.
No one will make a new root, all that remains is either a multisite, or in the folder with the WP site, make another folder, for example "new", and install wordpress there.
The question remains regarding domains.. For these two sites, two different domains, what to do with them?
Will there be problems with search engines later?
Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2016-04-15
@dimasmagadan

Don't listen to them. Lie. You can do everything if you know how)
in your case you need to:
in wp-config.php write the condition
if the host == site1.ru, then change the base prefix to wp1_
if the host == site2.ru, then change the base prefix to wp_
then you will need to move the uploads folder in the settings of one of the sites to another location.
you can also move themes and plugins there as well.
or you can generally move everything in the wp-content of one of the sites to another place.
all this can be done in the same wp-config.
https://codex.wordpress.org/%D0%A0%D0%B5%D0%B4%D0%...
(see moving wp-content)
so we get two sites in the same folder, which will use different tables in the database, a different set of plugins, different themes and different media files.

I
Ignat Smirnov, 2016-04-15
@IgnatSm

Good afternoon. There is no way
to do it in one directory .

A
aarty20, 2016-04-16
@aarty20

I agree with Ignat - in a normal way with 2 domains and a minimum of crap - only multisite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question