Normally if you have one WordPress website it is easy to create rewrite rules in the
.htaccess file for your domain. For example, if your domain is DomainA.com and you have the following rewrite rule:
RewriteRule ^i-like-([a-zA-Z0-9-]+)/$ wp-content/themes/customtheme/custom-pages/ilike.php?like=$1 [L]
You will get DomainA.com/i-like-...
But what if I have a multisite with the following domains:
- DomainA.com (primary domain)
- DomainB.com (Mapped domain)
- DomainC.com (Mapped domain)
And I want to create a rewrite rule for DomainB.com for a specific file like above?
Is there a way to achieve this?