Weird search results in google – showing ical: BEGIN:VCALENDAR VERSION:2.0 PRODI

Home Forums Calendar Products Events Calendar PRO Weird search results in google – showing ical: BEGIN:VCALENDAR VERSION:2.0 PRODI

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1144545
    Inbar
    Participant

    Here’s a screenshot of search results for rashut harabim: http://prntscr.com/by4kro
    Showing: BEGIN:VCALENDAR VERSION:2.0 PRODID:-//רשות הרבים – ECPv4.2 …
    What is that and how can I remove it from search results?

    #1144932
    Josh
    Participant

    Hey Inbar,

    Thanks for reaching out to us!

    The page that is indexed there is the ical feed (/events/?ical=1) which the excerpt there is what would be on that page.

    Is that the first result (or only result) from your website that shows when searching for the site name? Is it possible that you may have search engines blocked on the site or that there may be an SEO plugin activated that may need some modifications with the settings?

    Thanks!

    #1145002
    Inbar
    Participant

    The SEO settings are fine. How can I noindex/nofollow the ical feed from Google?

    #1145071
    Josh
    Participant

    Hey Inbar,

    Thanks for following up here.

    Here is a snippet that you can add to your theme’s functions.php to have the feed no longer indexed:

    
    /**
    * Set a noindex HTTP header on iCal feeds.
    *
    * @param  mixed $passthru (unused)
    * @return mixed
    */
    function set_noindex_on_ical_feeds( $passthru ) {
    header( 'X-Robots-Tag: noindex' );
    return $passthru;
    }
    
    add_filter( 'tribe_events_ical_feed_filename', 'set_noindex_on_ical_feeds' );
    

    Let me know if this helps.

    Thanks!

    #1153674
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Weird search results in google – showing ical: BEGIN:VCALENDAR VERSION:2.0 PRODI’ is closed to new replies.