Support » Networking WordPress » Network admin link broken (wordpress own directory)

  • karlavecunk

    (@karlavecunk)


    Hi,
    While updating wordpress 3 to 3.3.2, I discovered a little problem with my WordPress (own directory setup) multisite.

    The links to network admin aren’t working.
    The WordPress setup is simple : /wordpress/BLOG-SLUG
    The “broken” links are, for exemple :
    /wp-admin/network/sites.php in the admin (the good link is supposed to be /wordpress/wp-admin/network/sites.php?)

    The related problem is that wordpress/wp-admin/network/sites.php doesn’t work too… It’s redirected to /wp-admin/network/sites.php

    So it’s seem a config problem + there is a rewrite/redirection made.

    This problem isn’t appening in wordpress 3.0
    The blog was a MU before updating to 3.0 then to 3.3.2

    HTACCESS  :
    RewriteEngine On
    RewriteBase /wordpress/
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    WP-CONFIG :
    […]

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    define('VHOST', 'no');
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'www.acelf.ca' );
    define('PATH_CURRENT_SITE', '/' );
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOGID_CURRENT_SITE', '1' );
    
    [...]
    
    define( "WP_USE_MULTIPLE_DB", false );
    define('WP_ALLOW_MULTISITE', true);

    WEBSITE :
    http://www.acelf.ca/wordpress/ (wordpress)
    http://www.acelf.ca/nouvelles/ (BLOG)

    Thanks!

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

    (@ipstenu)

    Lead Plugin Wrangler

    What’s http://www.acelf.ca/nouvelles/ ? If that’s a SITE on your network, then the issue is you’re trying to run Multisite out of a folder it’s not installed in.

    If it’s a totally separate site, we can ignore it.

    karlavecunk

    (@karlavecunk)

    Hum… By giving a /nouvelles, it’s juste like the classic setting

    The Site address (URL) is identical to the WordPress address (URL) (above) unless you are giving WordPress its own directory

    ?
    All the blogs are #1 as their admin, it’s only the network admin that is brokeN! It works well until 3.1

    Maybe the problem is normal cause a Mu can’t have a /folder/ outside /wordpress director so the config that echo links and do rewrites can’t works… But it still works before 3.1 (admin bar)

    Regards,

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Yeah, you cannot do that with Multisite.

    Read http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Can’t do it, won’t work, don’t try it. That’s totally why you’re having errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Network admin link broken (wordpress own directory)’ is closed to new replies.