title: My search form is redirecting to the homepage. How to solve?
body: <p>Everytime when I try to search on my website, it keeps returning to the homepage. I have a search form though, built-in with my theme. Can't find the problem. Can you help me?</p>
  
  <pre><code>&lt;?php get_header(); ?&gt;
  &lt;div class="content"&gt;
      &lt;?php tie_breadcrumbs(); ?&gt;
  
      &lt;div class="page-head"&gt;
          &lt;h2 class="page-title"&gt;
              &lt;?php if ( have_posts() ) : ?&gt;
              &lt;?php printf( __( 'Search Results for: %s', 'tie' ), '&lt;span&gt;' . get_search_query() . '&lt;/span&gt;' ); ?&gt;
              &lt;?php else : ?&gt;
              &lt;?php _e( 'Nothing Found', 'tie' ); ?&gt;
              &lt;?php endif; ?&gt;
          &lt;/h2&gt;
          &lt;div class="stripe-line"&gt;&lt;/div&gt;
      &lt;/div&gt;
  
      &lt;?php if ( have_posts() ) : ?&gt;
          &lt;?php get_template_part( 'loop', 'search' );    ?&gt;
          &lt;?php if ($wp_query-&gt;max_num_pages &gt; 1) tie_pagenavi(); ?&gt;
      &lt;?php else : ?&gt;
          &lt;div id="post-0" class="post not-found post-listing"&gt;
              &lt;div class="entry"&gt;
                  &lt;p&gt;&lt;?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'tie' ); ?&gt;&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;?php endif; ?&gt;
  &lt;/div&gt;
  &lt;?php get_sidebar(); ?&gt;
  </code></pre>
  
  
  
  <p>This is the website: <a href="http://plugr.nl" rel="nofollow">http://plugr.nl</a></p>
  
  <p>Addition: The HTML</p>
  
  <pre><code>    &lt;?php if(tie_get_option( 'top_right' ) == 'search'): ?&gt;
                  &lt;div class="search-block"&gt;
                      &lt;form method="get" id="searchform" action="&lt;?php echo home_url(); ?&gt;/"&gt;
                          &lt;button class="search-button" type="submit" value="&lt;?php if( !$is_IE ) _e( 'Search' , 'tie' ) ?&gt;"&gt;&lt;/button&gt; 
                          &lt;input type="text" id="s" name="s" value="&lt;?php _e( 'Search...' , 'tie' ) ?&gt;" onfocus="if (this.value == '&lt;?php _e( 'Search...' , 'tie' ) ?&gt;') {this.value = '';}" onblur="if (this.value == '') {this.value = '&lt;?php _e( 'Search...' , 'tie' ) ?&gt;';}"  /&gt;
                      &lt;/form&gt;
                  &lt;/div&gt;&lt;!-- .search-block /--&gt;
  </code></pre>