• I found everything works as long as the links start with www. IE: https://www.mysite.com as opposed to mysite.com. When I’m in https://www.mysite.com/wp-admin some links have www and some don’t. To go into Network Admin it has the link mysite.com/wp-admin/network which redirects me to the logon page. If I manually copy the link (any links) and manually add www, https://www.mysite.com/wp-admin/network, it will work. Also I’m finding that some of the buttons don’t have www in their coding. I can edit the element and add the www (in Chrome) and they will also work.

    On a side note I edited the wp-config.php file and added www to “define(‘DOMAIN_CURRENT_SITE’, ‘mysite.com’)” and I got the redirect error. So I put it back without the www.

    How do I get all the links to have the www in them? In general I’m trying to get the Network Admin working so I’m open to any suggestions. Again I’m able to do everything by adding www as explained above.

    Thanks in advance for the assistance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    WordPress actually warned you when you started the Multisite process to NOT use www.

    You need to go into the database and look at the wp_options table. Make sure both home and site URLs are set to include the www.

    Also check wp_site and wp_blogs and make sure they have the www.

    Thread Starter IT-Guy

    (@it-guy)

    I checked the wp_options table and looked at both home and site URLs. They both had the www so I didn’t make any changes.

    Both the wp_site and wp_blogs didn’t have www so I added it to both.

    Now when I go to the network admin I get “Error establishing a database connection”. It doesn’t have the www in the link and if I add the www it redirects without the www and the error above comes up.

    I have been battling with the same issue, I believe. I got into a redirect loop when trying to access my network admin. I use subfolders and I recently changed the url’s of my sites to work with www. Also the main site.

    After a few hours of tweaking (wp-config.php and what not), I discovered that removing the www from the main site revolved my redirect issues when trying to gain access to network admin.

    I directly targeted the options.php of my main site and changed the www to non-www.

    The link looks something like this: https://www.mysite.com/wp-admin/options.php

    I hope this helps.

    Best regards,

    Bart

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Check your wp-config.php and make sure the URL for your site says www in the define for main site.

    DOMAIN_CURRENT_SITE should be https://www.domain.com

    It doesn’t have the www in the link and if I add the www it redirects without the www and the error above comes up.

    Make sure your .htaccess isn’t set to force NON-www then. Also check with your host to see if they have a setting that allows you to force one or the other, and make sure that it’s set to force www.

    Thread Starter IT-Guy

    (@it-guy)

    The htaccess file is the default and doesn’t force non-www (at least nothing that’s easy or plain to see). The host wasn’t set to force either. I tried settig the host (cPanel) to force www but it still didn’t work. I also tried to set it to force through the htaccess but that didn’t fix.

    I was thinking that setting the host to force www would fix the issue in a round about way but it didn’t. I still can get to the network admin by adding www to the links and buttons so I was surprised that it didn’t work.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well. Let’s force www then ??

    # Force the "www."
    RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
    RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]

    Put that at the very top of your .htaccess

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Trouble with "Network Admin" can get to links with www’ is closed to new replies.