title: How to make redirection to the home page if there are some params in the url?
body: <p>Sorry for my english in advance. On my home page I have posts and posts filter (select menu, checkbox, some inputs and etc). Each parameter is reflected in the url but I can't share it (I'll get the 404 error in return). I didn't want to use get-parameters in the url, so now it looks like:</p>
  <p>&lt;...home&gt;/sortby-date/order-desc/privateOnly-true</p>
  <p>How do I redirect to the home page if it's &quot;/&quot; or the words, for example, &quot;sortby&quot; and &quot;order&quot; are in the url otherwise it will redirect to the 404 page. Thank you!</p>