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
- Create mobile site with same content just different theme
- How do I change the Multisite URL?
- 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 subdirectory redirect infinite loop issue
- Generate a user list per site to communicate upgrade plans
- Hide a theme on list of themes in wp-admin without editing core files
- Difference Between Admin and Super Admin in Database
- Getting Custom Post Type content from main-site of a Multisite
- wp-admin slow in multisite
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- “Upgrade Network” error: stuck with SSL certificate verification
- Multisite – Redirect All Users to Subsite Home Page on Subsite Login
- 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
- Favicon plugin for WordPress running in network mode (multisite)? [closed]
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- How to remove Broken Link Checker widget from admin menu
- Problem in Internationalizing a plugin built for network level usage
- 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
- Multisite Redirect issue
- Change Username?
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- https redirect hell (adding www)
- WPMU Development Environment
- Redirect subdomain in Multisite installation?
- Why my deleted url is redirecting to random post?
- 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?
- Redirect Site Geologically
- WordPress Network admin options page: how to store options and where will they be stored?
- WordPress Multisite Strange Redirect on Primary Site
- Merge Multisites with Shared Network Media Library
- Nginx config, how can I redirect primary multisite domain, but not its sub-folders, nor other domains?
- How to create a Multi-Network subsite?
- WordPress: how to change URL for individual MultiSites?
- Renaming admin user on multisite install by MySQL
- How to split existing blog into WordPress Multisites without breaking links?
- Multisite Subdomain Redirect Mask
- HTTPS Warning and Certificate Error when Updating Network
- Moving wp-admin folder to a different host in a multisite environment
- Multisite, with virtual root
- How to temporarily redirect front page of a network to one of the sites/blogs?
- Locking one blog of many in a multi user/blog WordPress installation
- Can’t create a subdomain network – and WP is installed in webroot, not a folder
- How to have one installation at blog.example.com and multiple blogs in sub folders such as blog.example.com/userA?
- Working with Reverse Proxies and Multisite Installation
- Forward and mask a WordPress website
- WordPress multisite with same content
- unable to access network admin of a blog
- Infamous admin login redirect
- Two installs conflicting – Pages redirecting
- Website not listed under Sites (in a Network environment)
- Sites network with sub-folders
- Getting stylesheet error after setting subdomain to false in multisite
- After switch domain, some parts of my site still point to my old domain
- Change header.php of a specific WordPress Multisite
- Multisite (with nested paths) wp-admin redirect loop
- the menu of the network does not display my second website
- Multisite WordPress Configurtion
- WP Admin Panel for Multi-site install not loading JavaScript for one Subdomain
- WordPress Multisite redirect loop
- Move two independent sites to network
- How to apply specific plugins to affect all sites (Multisite Network)
- Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
- Getting 404 after Update in Multisite
- Make a select where the options are the different multisites
- Is there a way to have wordpress 301 versus 302 urls by default?
- Development (multi)site indexed – recommendations to redirect 301 to correct url?
- Nginx Multisite redirects (incorrectly) on Chrome IE and Mobile, but works (correctly) on Firefox
- WordPress 3.0 Multisite – Child sites and backends appearing blank
- 4th Network Site Database Errors?
- How to display update message only to admin
- Subdomain add comment redirect to 404 not found page iis server
- How to disable admin access on new site registration for user in Multisite?
- Many big issues in the website, WP_Debug not showing
- Multisite Primary Domain Broken All Subsites Work
- Make multisite non-existing subdomains go to homepage instead of Index of/ page
- Unable to change blog language in multisite