About No indexing My pages.

Topic summary

A user converted their collection pages from pagination to infinite scroll but is struggling to prevent the old paginated URLs from being indexed by search engines.

Proposed Solution:
One respondent provided a Liquid code snippet to add to the theme.liquid file that targets paginated collection URLs (e.g., /collections/shoes?page=2) and adds a noindex meta tag. The code uses conditional logic to detect query parameters indicating pagination.

Additional Context:
Another participant referenced Google’s official documentation on blocking indexing, noting that while noindex directives work for Google, other search engines may interpret them differently, so complete de-indexing across all platforms isn’t guaranteed.

Status:
The discussion remains open, awaiting confirmation from the original poster on whether the suggested code solution resolves their indexing issue.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hey @smokemega2020

Here’s a clean and effective solution:

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the file below tag

{% if request.path contains '/collections/' and request.query.page %}
  
{% endif %}

This will target any paginated collection page (like /collections/shoes?page=2) and tell Google not to index them.

If I managed to solve your problem then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed