Admin bar 'My Sites' path is wrong
-
Hi… I have wpms installed with sub-folders (migrated from a wp installed in a folder.)
I’ve been able to overcome most issues, but this one I just have no clue…
When I’m logged in my admin bar shows “My Sites”. But clicking on it – or any of the sub menu items – results in page not found. What I figured out is that the My Sites menu doesn’t point to the sub-folder installation for the blog.
However, if I manually type in the path to network administration it works, and once I’m there then clicking on any of the items in the Dashboard work also.
For example, if I click on My Sites > Network Admin > Sites I get a page not found.
But manually entering the path to the network admin dashboard then clicking Dashboard > Sites works just find and the link on hover looks good to.
Path that shows on admin bar hover:
//nerdmans.com/wpadmin/networkPath that shows on Dashboard hover:
//nerdmans.com/blogsite/wpadmin/networkIs the problem that the path is not being rewritten for the admin bar with the wp install folder?
wp-config settings:
/* Multisite */
define(‘WP_ALLOW_MULTISITE’, true);define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘nerdmans.com’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);/* That’s all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/blogsite/’);htaccess settings:
# BEGIN WordPress
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).*) blogsite/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ blogsite/$2 [L]
RewriteRule . index.php [L]
# END WordPress
- The topic ‘Admin bar 'My Sites' path is wrong’ is closed to new replies.