So I am working on a site with 4 sub-domains under the main. They already have an MSM license so I am using that to break out the subs.
My question is:
What is the best way to handle the 404 redirects for all of the sites? I want to use a common 404 page for the main site and all of the sub-domains.
On the main site, it is easy enough.
{if no_results OR segment_3!=""}
{redirect="404"}
{/if}
But wouldn't the other sites just register a page view for things like analytics if I were to just add:
{if no_results OR segment_3!=""}
{embed="default_site:_includes/404"}
{/if}
I would like to be able to have the same results site wide and catch all 404 stats.
Thanks, Brian