Limit search engines to permalinks? (1 post)

  1. Firas
    Posted 9 years ago #

    So a lot of search engine results to my site seem to link to the home page or a date/category archive (especially the home page.) Anyone know if there are any downsides to a plugin that doesn't let them index those pages (it makes for an icky user experience...) I have in mind something like this:

    function permalinkplz() {
    if(!(is_single() || is_page())) {
    echo '<meta name="robots" content="noindex" />';
    add_action('wp_head', 'permalinkplz');

    Would you recommend a plugin that handles this sorta thing more extensively? (I'm a bit wary of the whole 'pimp your pr' community.) I guess making a google sitemap should help too..

Topic Closed

This topic has been closed to new replies.

About this Topic