New answers tagged

2

If you're using Apache, you can use a RewriteRule with the F flag to deny any matching request with a HTTP 403 response. Use RewriteCond to apply your rule only to specific domains, or everything but that specific domain in your case. Something like this should work: RewriteEngine on RewriteCond %{HTTP_HOST} !^(www\.)?primaryDomain\.com$ [NC] RewriteRule ^/?...


2

Since 3.4, you do this by passing an array of site ID/site-enabled mappings like so: $entry->enabledForSite = [1 => true, 2 => true]; Where 1 and 2 are your chosen site ids.


Top 50 recent answers are included