Removing Paginated URLs from Google Search

by Max   Last Updated May 28, 2018 08:04 AM

I have a website running on Django, Python. I'm using django pagination so that users can click next & see further content.

For example, my website is example.com, so when user requests new page it takes them to example.com/?page=2 & example.com/?page=3 & so on . . .

But, the problem is that google has indexed all the paginated webpages (?page=2, ?page=3, etc.) & also showing the duplicate title error inside console.

So, I want to remove all the paginated webpages accept example.com from search results. I tried adding canonical tag <link rel="canonical" href="https://www.example.com/" /> & then tried removing example.com/?page=2 page using console remover, but my request was denied & the page is still there.

I was thinking about a solution, which is to add this code,

{% if not request.get_full_path is '/example.com/' %}
    <meta name="robots" content="noindex, follow">
{% endif %}

But, this logic is not working as it should. The if statement is not working properly.

How we solve this problem? Thank You . . .



Related Questions


Seo for hidden anchor tags

Updated October 26, 2017 13:04 PM

Does Google bot always treat dot as word separator?

Updated August 07, 2016 08:03 AM


Google Search Console: 404 errors on existing pages

Updated February 24, 2017 09:04 AM