Notify Bing when sitemap has been updated

14 views
Skip to first unread message

FTWMike

unread,
Mar 19, 2010, 2:52:38 PM3/19/10
to perlsitemapgenerator
If you also want to automatically notify Bing (in addition to Google)
when your sitemap has been updated, replace the "my
@NOTIFICATION_SITES" portion of your sitemap_gen.pl script with this
(each of the comments may wrap in this message, so you may need to
clean up (unwrap) some after copying this over into your code, if you
reference your original code you'll see which lines wrapped):

my @NOTIFICATION_SITES = ({
scheme => 'http',
netloc => 'www.google.com',
path => 'webmasters/sitemaps/ping',
query => {}, # <-- EXCEPTION: specify a query map rather than
a string
fragment => '',
sitemap => 'sitemap' # - query attribute that should be set to
the new Sitemap URL
},
{
scheme => 'http',
netloc => 'www.bing.com',
path => 'webmaster/ping.aspx',
query => {}, # <-- EXCEPTION: specify a query map rather than
a string
fragment => '',
sitemap => 'siteMap' # - query attribute that should be set to
the new Sitemap URL
}
);

Reply all
Reply to author
Forward
0 new messages