Forums

[resolved] How can I change the URL that 'Network Admin' points to? (8 posts)

  1. Wayne Smith
    Member
    Posted 1 year ago #

    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

  2. Andrea_r
    team pirate
    Posted 1 year ago #

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

  3. Wayne Smith
    Member
    Posted 1 year ago #

    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

  4. 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

  5. Andrea_r
    team pirate
    Posted 1 year ago #

    Sorry, thinking of the wrong spot.

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

  6. Wayne Smith
    Member
    Posted 1 year ago #

    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

  7. 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...)

  8. Wayne Smith
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic