Wordpress Multisite with Subdomain, make the subdomain look like another domain

admin2025-06-02  0

Hey sorry for the newb question but I have been looking around and could not find my answer.

I have a multisite network and polylang for translation

site 1 primarydomain will be in 3 language but with /en /sp /pt

site 2 sub.primarydomain will be 3 language but by domain en should show user drdomain es should show user doctordomain pt should show user doutordomain

right now the basic primary and subdomain work well, but how can i make all the changes for site 2 to work as said above

Any help would be appreciated

thanks

ok i made the domain change so now i have firstdomain and seconddomain but, in polylang i choose set languague by domain, english=seconddomain, portuguese=thirddomain and spanish=fourthdomain,

the english one work well, but the portuguese and spanish ones redirect to firstdomain :/

Hey sorry for the newb question but I have been looking around and could not find my answer.

I have a multisite network and polylang for translation

site 1 primarydomain will be in 3 language but with /en /sp /pt

site 2 sub.primarydomain will be 3 language but by domain en should show user drdomain es should show user doctordomain pt should show user doutordomain

right now the basic primary and subdomain work well, but how can i make all the changes for site 2 to work as said above

Any help would be appreciated

thanks

ok i made the domain change so now i have firstdomain and seconddomain but, in polylang i choose set languague by domain, english=seconddomain, portuguese=thirddomain and spanish=fourthdomain,

the english one work well, but the portuguese and spanish ones redirect to firstdomain :/

Share Improve this question edited Mar 2, 2019 at 13:01 mariepiercm asked Mar 1, 2019 at 22:02 mariepiercmmariepiercm 12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Go into the network admin screen. Then edit the 2nd site. Change the URL (in several places) to the www.seconddomain name.

Since that screen is essentially the wp-options table, there may be other places where you have to change the URL. Plus the need to change the URLs for all media files.

To do that most easily, use a search/replace plugin (I like Better Search and Replace) on that 2nd domain (via it's Dashboard) to replace the old URL with the new URL. Be careful about what tables you specify - they should only be the tables for the second site.

And, of course, a good backup of the multi-site before you do all this is always a good idea.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748848427a314227.html

最新回复(0)