This is what we need:
The basic structure (page/post designs, categories, etc etc) for all sites is done on the primary domain (e.g. primary.com). Other sites are sub-domains on the server. End-users will interact from independent domains (which must function as if totally independently; allow users to delete, add, etc).
This what we think should happen (but we’re not sure):
1. Basic structure (page/post designs, categories, etc etc) for all sites is done on the primary domain (e.g. primary.com)
2. Map sub-domain to “independent domain” e.g.:
sub.non-primary.com –> mapped to: anotherdomain.com
3. Cloned/duplicate the basic structure of primary domain to sub.non-primary.com
4. Customization of content to be done on sub.non-primary.com
4. Users log in on anotherdomain.com – oblivious to sub.non-primary.com
Is this what should happen?
Please advise
Thanks
wp multisite “my sites” -> “primary site”-dropdown: see image link
on multisite, go to topbar menu ‘My Sites’ , choose any subsite except ‘Network admin’, choose dashboard, in leftpanel menu choose ‘my sites’
now you see the ‘My Sites’admin page.
It contains a label ‘Primary site’ and next to it a dropdown, that lists all subsites.
So this dropdown suggests we can make any subsite the primary site.
I know that changing subsites to become the main site, is a much more complex process, that involves changing databases and config files etc.
So I have these questions:
1. Is the definition of the primary site the same as the main site?
2. What effect has this dropdown selection?
3. Why is it there if you still need to go through a complex process?
Thank you.
]]>But, I can get to the site when navigating to it when logged in and navigate to it.
Also, most of the images are missing on the old primary site. Not all, but most images.
OLD Primary site: www.abcitseasy.com
NEW Primary site: websites.abettercopy.com
All sub sites have their own domain
New sub sites created do appear under the new primary: websites.abettercopy.com/site_name
Network Admin as well.
Steps I followed:
The last post on this link by Andi,
https://premium.wpmudev.org/forums/topic/how-do-i-change-the-primary-site-on-my-multi-site-network/
I did not use the velvet blue updater because each site has it’s own domain name.
/**
* Multi-site
*
*/
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
$base = '/';
define('DOMAIN_CURRENT_SITE', 'websites.abettercopy.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 13);
My issue is I am trying to clone my primary site and create a subdomain. But when I run the duplicator I receive this error:
Duplicate entry ‘302’ for key ‘PRIMARY’
Seems there is a conflict with the database primary key. It’s trying to create another primary key. I know cloning for primary sites can be an issue. Is duplicating the primary site not possible with your plugin?
Even after I receive the error is still creates a subdomain which I point to a unique domain name. It does copy over the themes. But no pages/posts or media library images.
Any help would be appreciated.
Regards
Damhnait
domain.com (primary, in english)
it.domain.com
fr.domain.com
de.domain.com
I like the consistency of having the English language site also with a subdomain language prefix, so I would want:
domain.com?
en.domain.com
it.domain.com
fr.domain.com
de.domain.com
Now if I do that, what happens with the empty domain.com root domain primary site? It would be empty, because I wouldn’t actually want any content on the domain.com address. Your plugin is brilliant, and handles browser language redirect perfectly, but I can’t understand the concept now, even though I’ve been running the damn thing for close to two years.
You might suggest that I just rename the primary site to en. but I don’t think of the English site as the Primary Site. It’s just one of the four. So I’m just a bit (obviously) confused.
I know HOW to move it, so this is not really a support question, but I’m just hoping you can explain….. multisite to me again, like I’m five. I can’t find anything in any forums about this, unfortunately.
So sorry, but thanks in advance.
]]>I would like to know if it’s possible to create a site network so that the primary site is on a same level subdomain just like the sites under it?
To be more clear, let’s say the main domain www.example.com is using for another purpose so that I can’t use it for the network directly. Now if I still want to create this network using direct subdomains of www.example.com like site1.example.com, site2.example.com, …(only one level below the main domain), can I use a similar subdomain like main.example.com for the primary site as well? Otherwise, is there an alternative method to configure such a network?
Thanks.
]]>I’d like to get this sorted before I start transferring my other sites onto the network.
Thanks!
]]>I want to remove primary site from my sites list so subsite owners can’t see it or access it all together.
Is there a way to ensure sub-site owners do not have any access or view of primary site beyond being a member of that site?
Kindly,
Paul
]]>I am interested in setting up a new site in which I’d like to use multisite so that it provides identical sites to different countries. Regional differences, etc. make this practical. I’d like to go the subfolder route, rather than the subdomain option. When I first install WP MS, the set up will look like this:
www.mysite/ (the primary site)
www.mysite/country1/
www.mysite/country2/
www.mysite/country3/
But the primary site will be identical to the other sites and will be directed toward one of the countries. I’d like to implement a structure that appears like this:
www.mysite/country1/ (the primary site)
www.mysite/country2/
www.mysite/country3/
www.mysite/country4/
Is there a way to restructure things so that the primary site displays the same path structure as the others? Or, is there a plug in that will do this? Or, is there any way to cloak the primary site?
Thanks for the help,
Matt
]]>/etc/wordpress/htaccess:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# viewing attached files
RewriteRule ^/wp-uploads/(.*)$ /srv/www/wp-uploads/%{HTTP_HOST}/$1 [L]
# force HTTPS always
RewriteCond %{HTTPS} off
RewriteCond %{ENV:IS_HTTP} !1
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L=301]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
/etc/wordpress/config-bclaconnect.ca.php:
table_prefix = 'wp_';
$server = DB_HOST;
$loginsql = DB_USER;
$passsql = DB_PASSWORD;
$base = DB_NAME;
$upload_path = "/srv/www/wp-uploads/bclaconnect.ca";
$upload_url_path = "https://bclaconnect.ca/wp-uploads";
# Support for WP Networks functionality
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'bclaconnect.ca' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
And finally, /etc/wordpress/wp-config.php:
define('ABSPATH', '/usr/share/wordpress/');
define('WP_ALLOW_MULTISITE', true);
There is no trace of the uploads in log files anywhere on the system. What on earth is going on? Anyone?
Frantic, in Vancouver,
Erik