Configure .htaccess to have a WordPress single site installation with all subdomains pointing to the same pages?

I need to configure the .htaccess file, for a WordPress single site installation (no multisite), in order to have several subdomains pointing to the same content (same page structure). For example:

All three domains should show the same homepage:

  • team-a.domain.com/
  • team-b.domain.com/
  • team-c.domain.com/

The same for any subpage, for example the ‘About Us’:

  • team-a.domain.com/about-us/
  • team-b.domain.com/about-us/
  • team-c.domain.com/about-us/

How to configure .htaccess to display the same content like that?

Topic subdomains apache htaccess Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.