I changed the URL of my Wordpress page. It's a multisite network. I did most of the changes on the database.
These tables were affected:
wp_options: options named “siteurl” and “home”
wp_site
wp_sitemeta: the option named “siteurl”
wp_blogs: any entries in the “domains” column that have the old domain name
wp_#_options: Each sub-site will have sets of tables that correspond to the blog_id in the wp_blogs table. You need to go to the wp_#_options table, where # corresponds to the blog_id, and update the “siteurl” and “home” settings in that table.
Now when I try to access the admin panel with the new domain newdomain.subdomain.com/wp-admin/
I get the error:**Not Found The requested URL /wp-admin/ was not found on this server.**
What is still missing?
Make sure the new domain is pointing to the same folder as the old domain. I had a situation like this where the new domain was not pointing to the same server as the old domain, and after fixing that. I usually put an html file in the root to make sure that I can call it from both the old and the new domains, before updating the WordPress site URL.
Also, have a look in your wp-config.php
there's a line like this define('DOMAIN_CURRENT_SITE', 'domainname.old');
, update it to the correct domain.