How do I stop WordPress from redirecting certain links automatically on homepage?
<p>I want to display filtered results on the homepage of a WooCommerce shop by editing the URL.</p>

<p>I have a filtering option by tag, category and price range.</p>

<p>The URL for filtering by tag would look like this: </p>

<pre><code>sitename.com/shop/?product_tag=tag1
</code></pre>

<p>And that redirects automatically to </p>

<pre><code>sitename.com shop/product-tag/tag1/
</code></pre>

<p>Which I don't want because I want to add other filtering options, for example, like this: </p>

<pre><code>sitename.com/shop/?product_tag=tag1&amp;product_cat=category1
</code></pre>

<p>If I put this filter on a different page than the /shop/, it doesn't redirect and display the results there, on the page. </p>

<p>How can I disable this annoying WP redirect? </p>

<p>I tried this following one but didn't work: </p>

<pre><code>remove_filter('template_redirect','redirect_canonical');
</code></pre>