Bing does not accept sitemap pings anymore

This commit is contained in:
Belle Aerni committed 2022-12-11 00:49:47 -08:00
1 parent b84a5638fc
commit 173ff6a80a
2 files changed
+2 -18

No files matched your search

+2 -9
View File
@@ -52,20 +52,13 @@ class Service implements InjectionAwareInterface
$url = urldecode(BB_URL . 'sitemap.xml');
if (isset($config['sitemap_google']) && $config['sitemap_google']) {
try {
$link = 'http://www.google.com/ping?sitemap=' . $url;
$link = 'https://www.google.com/ping?sitemap=' . $url;
$this->di['guzzle_client']->get($link);
error_log('Submitted sitemap to Google');
} catch (\Exception $e) {
error_log('Exception :(');
}
}
if (isset($config['sitemap_bing']) && $config['sitemap_bing']) {
$link = 'http://www.bing.com/ping?sitemap=' . $url;
$this->di['guzzle_client']->get($link);
error_log('Submitted sitemap to Bing');
}
}+
$systemService->updateParams([$key => date('Y-m-d H:i:s')]);
return true;
@@ -42,15 +42,6 @@
<div class="fix"></div>
</div>
<div class="rowElem">
<label>{{ 'Ping sitemap to Bing'|trans }}</label>
<div class="formRight">
<input type="radio" name="sitemap_bing" value="1" {% if params.sitemap_bing == "1" %}checked="checked"{% endif %}/><label>{{ 'Yes'|trans }}</label>
<input type="radio" name="sitemap_bing" value="0" {% if not params.sitemap_bing %}checked="checked"{% endif %}/><label>{{ 'No'|trans }}</label>
</div>
<div class="fix"></div>
</div>
<input type="submit" value="{{ 'Update'|trans }}" class="greyishBtn submitForm" />
<input type="hidden" name="ext" value="mod_seo" />
</fieldset>