Support » Networking WordPress » How can I change the URL that 'Network Admin' points to?

  • Resolved Wayne Smith

    (@waynesmith1971)


    Hi everyone,
    This problem has been there since I upgraded to 3.1 about a month ago and I would like to try and resolve it once and for all if possible.

    When I log into the Admin Dashboard of my multisite blog, and click on the ‘Network Admin’ link in the top-right of the dashboard, the page never loads because it’s trying to access: http://blog.com/wp-admin/network instead of http://www.blog.com/wp-admin/network. My site does not allow access to http://blog.com and I would like to know if there’s a way of adding the www prefix to this link?

    Many thanks in advance
    Wayne

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    Check your htaccess file and the main site settings under Settings – General. make sure they all have www in front.

    Thanks for your reply; the htaccess file has the following inside it – how would I include www?

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule . index.php [L]

    And when you say check the main site settings under Settings – General, what am I looking for? all I see are the following:

    Site Title:
    Tagline:
    Email address:
    Timezone:
    Date format:
    Time format:
    Week starts on:

    Thanks
    Wayne

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Try adding this ABOVE your wordpress calls in .htaccess

    RewriteCond %{HTTP_HOST} !^mydomain.com$
    RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301]

    That will force anyone who comes to mydomain.com to go to http://www.mydomain.com

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    Sorry, thinking of the wrong spot.

    Go to network admin – > sites. edit the main site. is the www in all the addresses?

    Andrea and Ipstenu, thank you both for trying to help me – unfortunately I’m still having problems.

    Ipstenu, I included the code you listed at the very top of my htaccess file, and changed mydomain.com for my own website domain, but then when I try and visit my site I get an ‘Internet Explorer cannot display the webpage’ error.

    Removing that code allows me to access the site again.

    Andrea, when I access network admin > sites, the main site is called ‘www’ which from memory is what wordpress named it automatically when I originally set up wordpress on this domain. I seem to remember when I tried to name it something else, it automatically reverted to www and would not allow me to name it anything else.

    If I then click on the ‘Edit’ link underneath this site name, it fails to reach the page because its trying to access it without the www in front of the rest of the URL – if that makes sense.

    So I’m left scratching my head wondering how to resolve this.

    Kind Regards,
    Wayne

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Try this one then:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain.tld [NC]
    RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301]

    (some hosts get tetchy…)

    Thanks Ipstenu,
    I have no idea what that code did but it worked, I can now access my home page, log in to my dashboard and click through to the network admin with no issues at all.

    I take my hat off to you and bow to your superiority, thank you for your assistance – I am eternally grateful 🙂

    Kind Regards,
    Wayne

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How can I change the URL that 'Network Admin' points to?’ is closed to new replies.