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

add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico

But I want change url to https://cdn.domain.com/favicon.ico, How setting this url with rewrite rules in PHP. You can’t. That’s not how WordPress rewrite rules work. add_rewrite_rule is used for mapping pretty permalinks into the form /index.php?queryvar=value&etcetc. Most servers don’t even load WordPress to handle requests like that for assets and skip PHP/WordPress completely for performance … Read more

Iterating over every multisite / theme and list the pages

due to Rick Hellewells comment I could write a code, which iterates over every blog (as a blog is a new mulitiste site) and outputs it’s site on plugin activation. See this link: https://wisdmlabs.com/blog/how-to-list-posts-from-all-blogs-on-wordpress-multisite/ As every site has it’s own theme, the $temp variable can hold the wp_get_theme command (you could also extract the site’s … Read more