title: Laravel route to check for multiple string
body: <p>I want redirects (301) for some routes which contains the following - </p>
  
  <p><code>page=1</code> (query string) or
  <code>index.php</code> or
  <code>?&amp;</code>(query string)</p>
  
  <p>I have added the route as - </p>
  
  <pre><code>Route::get('/{any_url}', 'UsersController@processRedirect')-&gt;where('any_url', '(.*)index\.php(.*)|(.*)page=1(.*)|(.*)|?&amp;(.*)');
  </code></pre>
  
  <p>When I am checing in <a href="https://regex101.com/" rel="noreferrer">https://regex101.com/</a> it is working but in my app iit iis not working.</p>
  
  <p>What could be the issue?</p>
  
  <p>I have done this via MiddleWare but I do not want to check for all urls.</p>
  
  <p>Is there any other way to achieve this?</p>