Deindexing categories filters

Posted in: Newspaper
Post count: 39

Hi there!

I woul need to deindex all the pages generated by the categories filters:

http://screencast.com/t/gHiWwuSzf0

The pages to be deindexed are the ones which have ?filter_by=

I would need to insert <META NAME=”ROBOTS” CONTENT=”NOINDEX, NOFOLLOW”> in the header section of each one of this pages.

Could you please help me?

Thanks in advance!

Post count: 7909
Post count: 39

Hi Alin!

Thanks for the answer, but I need to insert the meta atributte “NOINDEX” in every page generated by the sort filter. Where is the file that generates this pages?

Thanks!

Post count: 7909

Hi,

You can try to add a condition in header.php like this – http://screencast.com/t/5zeZVfR23

<?php
    if(is_category() and isset($_GET['filter_by'])) {
        echo '<meta name="robots" content="noindex, nofollow" />';
    }?>

Hope this helps!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.