The links in the navbar menu, in (My sites > Manage the network) are pointing (and keep redirecting) to incorrect URLs.
The incorrect URLs are in this pattern:
https://https//www.domain.com/wp-admin/network/
https://https//www.domain.com/wp-admin/network/sites.php
https://https//www.domain.com/wp-admin/network/settings.php
Even if I manually entered the correct URL without the repeated https, I am redirected to the wrong URL again.
It seems that https//www
is set somewhere instead of https://www
, I can’t find where.
Places that I have looked and they were OK:
- wp-config.php (DOMAIN_CURRENT_SITE)
- .htaccess
- site table (domain only, with www but not https or /)
- options table (situeurl and home)
- sitemeta table
I haven’t updated any of the above-mentioned. They were OK. (So not cache issue)
I tried the Search option of my phpMyAdmin using https//www
but didn’t return any match.
Where else should I look?
6 s
There are 5 values need to change.
From database.
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.
Note: In most cases, you may/will need to update an entry in your WP-Config.php file. The code I would recommend taking a look at is the code snippet here:
define('WP_ALLOW_MULTISITE', true);
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
$base="https://wordpress.stackexchange.com/";
define( 'DOMAIN_CURRENT_SITE', 'mysite.com' );
define( 'PATH_CURRENT_SITE', "https://wordpress.stackexchange.com/" );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );