Support » Fixing WordPress » Multisite install network admin URL

  • Hello,

    I recently allowed multisite and everything seems to work. I used this tutorial

    The problem is that when I want to click link “Network Admin” or any link related to administrating network then I am redirected to localhost/wp-admin/network but it should go to localhost/wordpress/wp-admin/network. Why does it generates wrong URL ?? My wordpress installation is in “wordpress” directory but the address for accessing the site is root.

    My .htaccess (The one that is in install directory)

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) C:\wamp\www\wordpress/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ C:\wamp\www\wordpress/$2 [L]
    RewriteRule . index.php [L]

    What I added in wp-config.php

    /* Multisite */
    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'localhost');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’d say change that PATH_CURRENT_SITE constant from “/” to “/wordpress/”.

    If I do that i will get a clean white page that says “Error establishing a database connection”. Any more suggestions please ?

    That’s strange.

    When you leave it as above (in your original post), does everything *work*? You said in the beginning that “everything seems to work okay” and that you have the site set up so that the files are in the WordPress directory, but access is in the root. Is something not working, or is it just that “WordPress” isn’t in the URL is bugging you?

    Its just that it isnt in the url. If i manually add /wordpress/ to it then I get to the network dashboard, but its first of ll very uncomfortable and second of all some actions just dont work because of it redirects the request to wrong URL and therefor some of the changes wont go through.

    I thik the problem is with the site itself. Cause all the things that are related to site dont have the necessary “/wordpress/” in the URL.

    I uploaded image to illustrate the problem.

    Did you ever figure this one out, Martin? I am having the same issue.



    Forum Moderator

    @steakman4: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, this topic reference an older version of WordPress.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multisite install network admin URL’ is closed to new replies.