Jump to content

SEO Problems - Filters & Search results


djo1919

Recommended Posts

Hello,

I am experiencing SEO issues related to search results and filter parameters on my PrestaShop website.

The problem is that URLs with query parameters (e.g., ?q=, ?order=, etc.) are being indexed by Google, even though these pages are simply filtered or sorted versions of the same content. This is leading to potential duplicate content issues, and I want to make sure that only the main page URL (without parameters) is indexed.

To resolve this, I have added a canonical tag to the filtered pages that points to the main page. For example, the canonical tag on pages like /home?q=filter1 or /home?order=price_asc points to /home to tell Google that all variations should be treated as one page. However, I am unsure whether this is sufficient to prevent indexing of the filtered URLs.

My questions are:

Is adding the canonical tag the right approach in this situation?

Do I need to take any additional steps, such as using redirects or other configurations, to ensure that only the main page URL is indexed?

How can I make sure that Googlebot correctly recognizes and respects the canonical tag, and doesn't index the filtered versions of the page?

Any advice or best practices for handling this situation in PrestaShop would be greatly appreciated.

Thank you!

Link to comment
Share on other sites

Thank you for your reply Daresh, what I'm facing exactly is Crawled - currently not indexed, and when I block these queries through robots.txt they appear under the problem Blocked by robots.txt

Please find attached what I mean

Regards

Screenshot 2025-02-24 at 12-37-09 Page indexing.png

Link to comment
Share on other sites

I know, but what I'm saying is that maybe if you actually had the noindex tag there, it would not be indexed. Instead of / in addition to the canonical one :)

If you have canonical and it is indexed than maybe "canonical" is treatead only as a suggestion by the bot. It seems that the actual "noindex/nofollow" may have a greater respect out there.

Link to comment
Share on other sites

Canonical can do the work but it might take months to remove the pages if already indexed on the pages.

As mentioned by Daresh, you can also add the noindex tag on the page. 

To add the canonical, have you changed anything in the code? If yes, similar way you can add the noindex on the page if the URL has "q" params.

 

 

 

Link to comment
Share on other sites

1 hour ago, djo1919 said:

Is adding the canonical tag the right approach in this situation?

nope. The best way is not letting search engines touch filter pages. And best over Meta robot directives. The robots.txt is off for Google. Especially their mobile bots.
https://webmasters.stackexchange.com/questions/93555/googlebot-mobile-ignoring-robots-txt-pretending-to-be-googlebot

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...