OBSOLETE: Nearly all search engines have dropped ping-based sitemap submission in favor of search console management or automated crawling via robots.txt.
An ExpressionEngine extension that pings a preselected list of search engines when the sitemap has been updated.
- Clone the repository to
/system/user/addons/submit_sitemap
. Note that the cloned working directory must be namedsubmit_sitemap
. - Optional: From the working directory, run
composer install
to install asynchronous connection tools. - From the control panel's Addon menu, install the extension.
The extension will run after channel entry save when entries are created or deleted. It will not run on entry update, as the site structure will not have changed.
By default, the extension will use php_curl and make a series of synchronous requests. If available, the extension will use async connection methods. Tool availability is defined by composer.json
and is checked automatically at runtime.
To avoid accidental submission of dev sites, the extension will only run in production, currently defined as https://will.illinois.edu
and matched against site_url()
at runtime.
- Sitemap uri is
/sitemap
. - Sitemap is generated using the
{exp:channel:entries}
tag or similar. - The predefined list of search engines is standard.
- Production site is
https://will.illinois.edu
.
- ExpressionEngine v3+
- remove yahoo, duckduckgo, aol from search engine list. submissions now handled by other services.
- remove guzzle and async submission options
- update guzzle (breaking changes)
- update guzzle
- update guzzle
- update docs url
- update guzzle
- update guzzle
- Correct call to
site_url
config item.