Title: Network admin links wrong
Last modified: August 20, 2016

---

# Network admin links wrong

 *  Resolved [losgaz](https://wordpress.org/support/users/losgaz/)
 * (@losgaz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/)
 * I have invoked multisite on an existing local site. WP resides in
    localhost/
   LOSTest/barman/ The existing site and its admin still works correctly. Admin 
   is in at localhost/LOSTest/barman/wp-admin
 * The links for the Network admin resolve to localhost/LOSTest/wp-admin/network
   which obviously doesn’t exist.
 *     ```
       my config resides in localhost/LOSTest/ and contains
       define('WP_ALLOW_MULTISITE', true);
       define('MULTISITE', true);
       define('SUBDOMAIN_INSTALL', false);
       define('DOMAIN_CURRENT_SITE', 'localhost');
       define('PATH_CURRENT_SITE', '/LOSTest/');
       define('SITE_ID_CURRENT_SITE', 1);
       define('BLOG_ID_CURRENT_SITE', 1);
       ```
   
 * htaccess is also in localhost/LOSTest/ and is
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /LOSTest/barman/
       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).*) barman/$2 [L]
       RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ barman/$2 [L]
       RewriteRule . index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * I have spent many hours looking at similar topics but nothing seems to work.
 * Can anyone help please?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/#post-3478544)
 * > The links for the Network admin resolve to localhost/LOSTest/wp-admin/network
   > which obviously doesn’t exist.
 * Then why this?
 * `define('PATH_CURRENT_SITE', '/LOSTest/');`
 * If WP is installed in /LOSTest/barman, then that should be the same.
 *  Thread Starter [losgaz](https://wordpress.org/support/users/losgaz/)
 * (@losgaz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/#post-3478554)
 * That what was suggested on the Network setup – if I change that to anything else
   I get the:-
    **Error establishing a database connection**
 * In fact if I remove that line and the `define('DOMAIN_CURRENT_SITE', 'localhost');`
   nothing seems to change – the existing site worls and the network admin links
   are still wrong.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/#post-3478631)
 * Does localhost/LOSTest/barman/wp-admin/network work?
 *  Thread Starter [losgaz](https://wordpress.org/support/users/losgaz/)
 * (@losgaz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/#post-3478651)
 * That gets into the network admin page but the links to _edit_ the site are incorrect.
   Also the _Add New_ link is incorrect.
 * I can go direct to localhost/LOSTest/barman/wp-admin/network/site-new.php
    but
   the post action url is also incorrect (no ‘barman’).
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/#post-3478708)
 * Can you reinstall? I wonder if it’s a botched install.
 *  Thread Starter [losgaz](https://wordpress.org/support/users/losgaz/)
 * (@losgaz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/#post-3478717)
 * I’ve tried that – exactly the same result.
 *  Thread Starter [losgaz](https://wordpress.org/support/users/losgaz/)
 * (@losgaz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/#post-3478722)
 * Have now done a vanilla reinstall and all is now ok. As I was installing the 
   network I noticed the message about mod_rewrite which I had obviously missed 
   previously. I activated that this time, so that may be why it wasn’t working 
   properly before.
 * Just a thought – could perhaps a fix be made to throw an error if the module 
   is not enabled?
 * Thanks for your time.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Network admin links wrong’ is closed to new replies.

## Tags

 * [network admin](https://wordpress.org/support/topic-tag/network-admin/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 7 replies
 * 2 participants
 * Last reply from: [losgaz](https://wordpress.org/support/users/losgaz/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/network-admin-links-wrong/#post-3478722)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
