network admin_url
filter can rewrite network admin url.
But i don’t know it is a best way or not.
// wp-config.php
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
// add code //
define('__WORDPRESS_CORE_DIR__', '/wordpress');
add_filter('network_admin_url', 'rewrite_my_network_admin_url', 10, 2);
function rewrite_my_network_admin_url($url, $path) {
$networkPath = str_replace( '/wp-admin/', __WORDPRESS_CORE_DIR__ . '/wp-admin/', $url );
return $networkPath;
}
http://chaika.hatenablog.com/entry/2018/02/03/090000 (japanese)
Related Posts:
- Admin user getting redirected to /wp-admin/user
- Timeout While Upgrading Network in Multi-site
- Multisite wp-admin redirect loop
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- Redirect loop (only for multisite network admin)
- Why does the My Site dropdown show only a single domain?
- Multisite network admin login redirect
- Multisite wp-admin redirecting to main wp-admin using NGINX
- network admin pages not linked to correctly
- Pages redirect me to the homepage
- Wp-admin wrongly redirecting on multisite
- Multisite logged into one wp-admin, move to another sites wp-admin asked to login again
- The wp-admin url for each site does not work on WordPress multisite
- Redirect Main Site to Subsite in Multisite WordPress
- Create mobile site with same content just different theme
- Add additional Network constants to wp-config.php dynamically
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- How do I change the Multisite URL?
- How to hide or remove unwanted widgets on Multisite installation?
- Post and Page Inheritance to subsites in a WordPress Network
- Roles other than Super admin accessing manage_network_themes
- How can I diagnose a slow WordPress admin?
- How to enable a site administrator to edit users in a WordPress network/ multisite setup?
- How to add super admin to all sites
- WP-Admin not working properly at WordPress multisite with subdirectories
- How to disable Multisite sign-up page?
- Listing of all site options in dashboard
- Multisite: How to store global options vs. site options?
- Single-user registration to access all sites in WordPress MultiSite Network
- Security in WordPress plugin development
- WordPress multisite,several different languages,page redirect?
- WordPress Multisite – Multiple subfolders for blogs
- WordPress multisite subdirectory redirect infinite loop issue
- WPMU vs WordPress MultiSite is there a difference anymore?
- Generate a user list per site to communicate upgrade plans
- Multisite 404 errors and non-www redirecting to home page
- Hide a theme on list of themes in wp-admin without editing core files
- multisite htaccess 301 redirects
- Difference Between Admin and Super Admin in Database
- Getting Custom Post Type content from main-site of a Multisite
- wp-admin slow in multisite
- Don’t allow access to wp-admin but allow admin-ajax requests to be fulfilled on frontend?
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- “Upgrade Network” error: stuck with SSL certificate verification
- Redirect all users, except network administrators, from the main site to a subsite
- Multisite non-www domain redirects to sign-up
- Domain redirect in WordPress multisite
- Multisite – Redirect All Users to Subsite Home Page on Subsite Login
- Copy posts from one blog to another in multisite environment
- Multisite non www domain gives registration error but should redirect to www.domain.com
- 301 Redirects for posts, category, pages from original domain to sub-domain of multisite
- My subsites accidentally went from one multisite network to another. How do I change it back?
- Trying to access second site dashboard on a multisite configuration proceeds to an error
- Add new domain to ‘My Sites’ using network admin
- Manipulate list of themes in wp-admin
- Favicon plugin for WordPress running in network mode (multisite)? [closed]
- Why wordpress multisite redirect to wp-signup if site exists?
- No Network/Super admin after enabling Network
- Creating a Post form outside of the Admin
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- How to remove Broken Link Checker widget from admin menu
- Sub-subdomain getting redirected to main domain
- How to set Active plugins as the default screen?
- Problem in Internationalizing a plugin built for network level usage
- Why can’t I delete original user in multisite? Options for manual removal
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- Redirect subdomain homepage to domain specific page in wordpress multisite
- WordPress multisite subdirectory on nginx behind reverse proxy
- Cookie nonce is invalid – Multisite
- Multisite Redirect issue
- Change Username?
- WordPress mutisite migration
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Disable domain redirect
- Redirect users on logout
- Multisite, multiple domains per site
- Super admin access to a forgotten WP instance?
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- Multisite Network menu links not updating
- Is there a way to run upgrade.php for one blog?
- How to disable the default WordPress redirect to non-www URLs?
- https redirect hell (adding www)
- Auto Redirect after login
- WPMU Development Environment
- Redirect subdomain in Multisite installation?
- Issue with htaccess redirection in WP Multisite
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- All pages have 302 redirect, which I can’t remove
- Why my deleted url is redirecting to random post?
- Redirect only posts to New Domain
- Multsite redirecting to the main site
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Iframe being removed only for some users when publishing a page
- Redirect & permalink problems after moving multisite to a new server
- Temp URL Redirect Loop
- Installed domain-based Multisite but can’t access wp-admin (redirect loop)
- WP Multisite with Domain Mapping : Preventing User Access to Dashboard
- Include only a domain path in multisite Network
- Possible to enqueue scripts and CSS to Multisite Network dashboard?