Multisite subdomain microsite on secondary domain

After you create the sub-site, go into the Site Settings (via the Network Admin) and change the URL for the sub-site to https://event2.domain.com . That’s the same way that you would assign another domain name to a sub-site. For example, if the main site is www.domain.com, sub-site 1 would be www.domain.com/subsiteone (you decided the subfolder … Read more

Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?

I’ll try to outline the fundamental steps — your mileage might vary, depending on your actual setup. I tend to manage WordPress deployments in an automated manner (e.g. Ansible), so I have a preference for command-line scripts and config files. Define the home and site url in the wp-config.php file of your production environment (the … Read more

Cookies in Multisite network where sites have their own domain name?

First clear your browser’s cache (including cookies) and your server’s cache (cache plugins, etc.) Then set the following in your wp-config.php file: define(‘ADMIN_COOKIE_PATH’, “https://wordpress.stackexchange.com/”); define(‘COOKIE_DOMAIN’, ”); define(‘COOKIEPATH’, ”); define(‘SITECOOKIEPATH’, ”); Also, you may checkout the answer from HERE: define(‘WP_ALLOW_MULTISITE’, true); define(‘MULTISITE’, true); define(‘SUBDOMAIN_INSTALL’, false); define(‘DOMAIN_CURRENT_SITE’, ‘your-domain.example’); define(‘PATH_CURRENT_SITE’, “https://wordpress.stackexchange.com/”); define(‘SITE_ID_CURRENT_SITE’, 1); define(‘BLOG_ID_CURRENT_SITE’, 1); define(‘SUNRISE’, ‘on’); If … Read more