title: If wordpress search not found redirected to /url and Not Found error
body: <p>I been trying to fix this error but I am having no luck at all.</p>
  
  <p>I am developing a WP theme and everything works fine except when I try to search for something that will return 0 results. When there are results everything works fine.</p>
  
  <p>If there are 0 results WP redirects me to <a href="http://mywebsite.com/url" rel="nofollow">http://mywebsite.com/url</a> displaying a "Not Found" error.</p>
  
  <p>Here I copy my code for searchform.php that may help someone willing to help me.</p>
  
  <p><code>&lt;form action="&lt;?php echo home_url(); ?&gt;" id="searchform" method="get" role="search"&gt;
      &lt;input type="text" id="s" name="s" value=""/&gt;
      &lt;input type="submit" value="Search" id="searchsubmit" style="display: none;"/&gt;
  &lt;/form&gt;</code></p>