Adding a 'www' to DOMAIN_CURRENT_SITE
-
I am trying to change my WP multisite from:
https://mydomain.com to https://www.mydomain.com
…but with no luck.
I have tried a simple search & replace on the db to replace all instances of https://mydomain.com with https://www.mydomain.com plus i added www. in wp_site table, as well as updated my wp-config.php file with the following:
define( ‘DOMAIN_CURRENT_SITE’, ‘www.mydomain.com’ );
Everything appears to work fine, however it means that I can no longer access my Network Admin page. When clicking the link it attempts to load for about 10 seconds before Firefox then gives me an error to say that the page isn’t redirecting properly, although I can’t figure out where it’s trying to redirect to.
If I restore my wp-config.php and remove www. from DOMAIN_CURRENT_SITE, then the site works fine again, but without the ‘www’ in the address bar.
Does anyone know if I am missing something?
- The topic ‘Adding a 'www' to DOMAIN_CURRENT_SITE’ is closed to new replies.