[closed] Multisite install network admin URL (8 posts)

  1. Martin.
    Posted 3 years ago #


    I recently allowed multisite and everything seems to work. I used this tutorial http://codex.wordpress.org/Create_A_Network

    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);
  2. Doodlebee
    Posted 3 years ago #

    I'd say change that PATH_CURRENT_SITE constant from "/" to "/wordpress/".

  3. Martin.
    Posted 3 years ago #

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

  4. Doodlebee
    Posted 3 years ago #

    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?

  5. Martin.
    Posted 3 years ago #

    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.

  6. Martin.
    Posted 3 years ago #

    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.


  7. Steakman4
    Posted 3 years ago #

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

  8. esmi
    Forum Moderator
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.