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
- Listing of all site options in dashboard
- Generate a user list per site to communicate upgrade plans
- Multisite 404 errors and non-www redirecting to home page
- multisite htaccess 301 redirects
- Getting Custom Post Type content from main-site of a Multisite
- wp-admin slow in multisite
- 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 gives registration error but should redirect to www.domain.com
- Add new domain to ‘My Sites’ using network admin
- No Network/Super admin after enabling Network
- Creating a Post form outside of the Admin
- Sub-subdomain getting redirected to main domain
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- Redirect subdomain homepage to domain specific page in wordpress multisite
- Cookie nonce is invalid – Multisite
- Multisite Redirect issue
- WordPress mutisite migration
- Multisite, multiple domains per site
- Super admin access to a forgotten WP instance?
- Multisite Network menu links not updating
- How to disable the default WordPress redirect to non-www URLs?
- Auto Redirect after login
- 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
- Installed domain-based Multisite but can’t access wp-admin (redirect loop)
- Adding new sites to Multisite won’t register in Dashboard
- Redirect Site Geologically
- How to configure Multisite Network with randomized hostnames?
- WordPress Network admin options page: how to store options and where will they be stored?
- WordPress Multisite Strange Redirect on Primary Site
- How to force change Network site multi language subdirectory base URL?
- Multisite Redirection to new domains
- Redirect One Multisite to Another
- Site redirecting to http://example.com/wp-signup.php?new=example.com
- 301’s not working with multisite
- WordPress: how to change URL for individual MultiSites?
- 2 website 1 database… Local to online
- 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 exclude specified from all list of Multisite
- 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
- Add Network Sites are not working
- Getting stylesheet error after setting subdomain to false in multisite
- How to hold posts and accounts for moderation on WordPress Network site
- 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?
- Redirect extra url to Multisite in folder
- 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