i have 3 subdomains inside my main file manager

->web1.mysite.com  (serves as main)

now i want to make web3.mysite.com my main domain. i tried changing wordpress address url in settings of web2 and web1 and its acting weird after that, i cant login to wp-admin anymore thats why i reverted it back through db. cutting the long story short, nothing changes.

Thanks in advance

1 Answer 1


You will need to modify some values directly in the database in order to change the url of your primary domain. The values in the following tables needs to be modified:

wp_options, wp_site, wp_sitemeta, wp_blogs and wp_#_options

Try this link it has all the steps involved in detail

  • im sorry but the only table that exists in the list that you've said is wp_options Commented Aug 24, 2016 at 5:23
  • since its a multisite some of the tables will be created with the siteid and hence it could be like wp_x_options. So you will need to check and change all these tables as well.
    – zapping
    Commented Aug 24, 2016 at 5:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.