title: Wordpress search returns 404 from pages?
body: <p>When i search from root or shop page something, fox example "food" it returns normally results with url</p>
  
  <blockquote>
    <p>site.com?s=food</p>
  </blockquote>
  
  <p>or from shop:</p>
  
  <blockquote>
    <p>site.com/shop/?s=food</p>
  </blockquote>
  
  <p>, but when i search it from contact or some other page, i get 404 and url:</p>
  
  <blockquote>
    <p>site.com/contact/?s=food</p>
  </blockquote>
  
  <p>I want in second case to redirect to root as first, so when somebody search from contact page, i want</p>
  
  <blockquote>
    <p>site.com?s=food</p>
  </blockquote>
  
  <p>This is some custom template, so default search maybe not work well.</p>