I’ve ended up with using such solution:
1) Created folders like:
wp-base
- wp-admin
- wp-includes
- .... all wp-php files
and I’ve created “symlink” that 2-folder and wp standard php files inside other folders:
my-wp-1
- wp-content & wp.config.php & htaccess
my-wp-2
- wp-content & wp.config.php & htaccess
The only thing I had to do is to use this in the top of wp-load.php
:
$fold=filter_var($_SERVER['HTTP_HOST'], SANITIZE_STRING);
/** Define ABSPATH as this file's directory */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname(dirname( __FILE__ )). "/$fold/" );
}
There seems no need of adding define( 'WP_CONTENT_DIR', __DIR__.'/wp-content' );
in wp-config.
Related Posts:
- Can i merge 2 new WP_Query($variable) ‘s?
- How to reliably flush rewrite rules on multisite?
- Convert a Multisite WordPress install into a Single site
- Why are my roles not visible in a Multi-site/Network?
- Using wp_insert_post() with Networking enabled
- Sharing Dynamic Sidebars across Multisite Blogs
- Multisite: How to store global options vs. site options?
- Mega WordPress Applications WPMU or otherwise
- Hide a theme on list of themes in wp-admin without editing core files
- How can I manage all multisite pending comments in one place?
- WordPress Multisite Network installation and dev questions
- How properly delete only one site (blog) from the Network in WordPress Multisite (WPMU)
- List all sites in multisite
- .epub file blocked despite ALLOW_UNFILTERED_UPLOADS set to true
- WordPress Multisite Layered Admins
- How to add multiple existing users to a multisite site?
- Hide root site in Multisite install
- Changing URL in multisite
- get_sites() for sites registered before given date
- How to share posts in WordPress Multisite?
- How do I park secure.primary.com on top of the multisite ID:1 domain: www.primary.com (primary multisite domain)
- How to order by blog ID in this multisite ‘List Blogs’ custom function
- WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
- Alias domain to Multi-site installation in Apache
- Multi Site Search Pagination is Broken
- how to identify a multisite installation
- Multisite setup creating custom table
- Woocommerce Multisite Get Orders from Another Site
- Subdomains With WordPress
- Cannot access WordPress Multisite Main Dashboard
- Bulk activate a theme on multisite
- Assign role to user on first login, if they are first (after admin)
- Multi language site with same content
- Multisite development environment
- Pretty Link Lite Plugin on WP Multisite
- Multisite – disallow list of blognames during subsite creation
- WordPress Multisite with different domains and themes
- use get_sites subsite_id with get_bloginfo”() and/or get_custom_logo
- Multiple wordpress installations that shares WordPress & Theme but with separated database
- How to recover deleted site in WordPress Multisite?
- What happens if I use .htaccess of network multisite on a single site installation?
- How to move 1 WP site from a mult-site environment to a different multi-site area
- URL redirect/rewrite rule wordpress multisite
- Nginx config, how can I redirect primary multisite domain, but not its sub-folders, nor other domains?
- Prefix Multisite Directory Structure
- Multisite Sub-domain creation Doubt | what will be the document root folder?
- Multisite Create Site not working
- Least expensive way to get table prefix in multisite installation
- How to have yearly versions of same site with different content (like yearly conferences)?
- How to write RewriteRule for login in multisite
- NextGEN Gallery: Use the same galleries on 2 or more sites on WP network (multisite)? [closed]
- Site’s admin created with wpmu_create_blog accessible only on 2nd attempt
- How can I create blog specific database table in multisite?
- Getting recent posts from all blogs on mother blog – multisite
- How can I manually activate a new site in a wordpress multisite network?
- Network of multisites in WordPress, create new site with all the contents of the main
- Display Different Content For Different Countries?
- Limit blogs creation
- How To Disable Add new users On Subsites In Multisite?
- How to query blogs posts of WordPress sub domain?
- how to list all subdomain in wordpress multiuser
- Can you please verify my robots.txt for wordpress
- sub-page settings saving in NETWORK DASHBOARD
- Check if current site ID and value exist in WPDB
- How to delete user from MU site when the user is removed from their site?
- How to publish some default pages in Multisite creation?
- Change WP-LOGIN and WP-SIGNUP for any request
- unique identifier for the same pages in a multilanguage/site context
- more tables created when create a new site
- Multisite ‘Welcome User Email’ SITE_NAME returns ‘network’ name, not the name of the blog
- Unified login page for a Multisite/BuddyPress site
- Problem with new Multisite Installation
- Installing wordpress on a subfolder of adsense approved domain
- Launch Media Library for specific MU site
- User registration on wordpress multisite
- WP-CLI Error Requesting CURL Extension
- Allowing users to manually add or remove themselves to/from WordPress multisite blogs
- Website creation for multiple clients but from a single account on multiple host name
- Is mature Multisite
- Error establishing a database connection after moving local wordpressmultisite from one directory to another
- Can I replace the “Upgrade Network” with SQL query?
- Multisite domain mapping with SSL redirects to main domain
- Define a new sub-folder naming – Multisite
- How to split database of WordPress multi-site network into multiple database
- WordPressMU: URL change and broken permalinks/links
- Extended URLs created using multisite feature not loading CSS/JS
- Backend freezing on certain pages of a subsite
- Modifying get_author_posts_url() in Multisite
- Multisite – User creation for second site from first site?
- Get users from all/specific blog by user_role and current_user role
- Multiple domains for with a single instal
- Pages redirect me to the homepage
- Using common slider in all sites
- Letting clients use visual builders plugins/themes on WordPress Multisite installation
- WordPressMu network with private sites
- Multisite pagination with get_posts
- HyperDB, Multisite – on new site creation put site’s tables to specific database
- Multisite Primary Domain Broken All Subsites Work
- Too much slow queries with my multisite
- Make multisite non-existing subdomains go to homepage instead of Index of/ page