Redirect all but certain requests to index
This will redirect all queries but urls containing: 
api or robots or utm_source strings

return array(
   '^(?!.*(api|robots|utm_source)).*$' =&gt; ['template' =&gt; 'index']
);