Skip to content

Sitemaps

4SEO can create, update and submit to search engines sitemaps, entirely automatically.

Multiple sitemap types exist:

  • XML sitemap: list of pages on your site
  • Images sitemap: list of images on your site, per page. 4SEO includes images in your main sitemap, so this is not a separate file
  • News sitemap: list of pages meant for news search results. Only includes Joomla articles as soon as they are published and only for 48 hours at most

XML Sitemaps are used by search engines for 2 main reasons:

  • to discover pages that are not naturally linked from other parts of your site
  • to help in deciding which page is the canonical one in case the same content can be accessed through multiple URLs

For larger sites, sitemaps can also help in deciding which pages will or will not be crawled, or faster, by prioritizing canonical pages.

As 4SEO crawls your entire site, it can easily build an exhaustive list of pages of your site. But if we were simply putting all those pages in the sitemap, this would be a terrible job from an SEO standpoint.

So 4SEO pays a lot of attention to only including the right pages in your XML sitemap, for the best SEO benefit.

News sitemaps are used by search engines to be informed of rapidly changing content on your site, such as news, events, etc.

Due to their rapidly-changing nature, News sitemaps are not based on the full site analysis, but are instead built directly by reading the database content and listening to when an article is published or unpublished.

4SEO will generate XML sitemaps automatically once a site analysis has completed (see dedicated paragraph for News sitemaps). This cannot happen earlier as 4SEO must crawl the entire site to identify canonical URLs, and also perform checks such as:

  • presence of noindex meta tag
  • exclusion of a page with a robots.txt

Once a sitemap is ready, it is automatically published. However, 4SEO also constantly monitors the site for changes and addition of new content.

When such a change or addition is detected, the new or modified page is analyzed again. New pages are added to the sitemap file if they comply with all requirements. Modified pages are checked again and may be added (if they previously were excluded) or removed (if they don’t match the requirements anymore) from the sitemap.

The Sitemaps page has a dashboard that tells you all about the sitemap status:

View of a sample 4SEO sitemap dashboard

Note that the Last visit recording is not always accurate and 4SEO may definitely miss some Google bot visits.

If you connect 4SEO to your Google Search Console account however, it can then read the data Google has about all of your website sitemaps, including how many URLs were discovered in these sitemaps.

Here is an example:

View of a sample 4SEO sitemap dashboard when connected to the Search Console

4SEO also generates an image sitemap for your site. Image detection can be controlled in the sitemaps settings.

Images are listed inside of the main sitemap file, so there’s no specific image sitemap file.

As with the main content sitemap, 4SEO tries to only include relevant and useful images in your sitemap. For instance, it will by default only include images wider than 200 pixels.

You can configure this option and several others to fine-tune which images are included and which ones are not using the corresponding settings section.

If you publish news, 4SEO can also generate a Google News sitemap for your site. It lives at a separate address:

https://www.example.com/sitemap-4seo.news.xml

It lists your most recent articles so that Google can discover them quickly.

The news sitemap follows Google rules for news sitemaps, which are different from those of regular sitemaps:

  • only Joomla articles are included
  • only articles in the selected categories, or in any of their sub-categories, are listed
  • only articles published in the last 2 days are listed, based on their Start Publishing date. Older articles are removed automatically
  • at most 1000 articles are listed, the most recent ones first
  • articles must be published and publicly accessible, and so must be their category and all its parent categories
  • articles are removed as soon as they are unpublished, or they reach their Finish Publishing date

For each article, the news sitemap lists its:

  • URL
  • title
  • language
  • publication date

The name of your publication is also listed, which can be configured in the settings and defaults to your site name.

Unlike the regular sitemap, the news sitemap does not wait for page changes or re-analysis. It is created the first time it is requested, and kept up to date automatically:

  • when an article is created, modified, published, unpublished or trashed, or when a category is modified, the news sitemap is rebuilt the next time it is requested
  • when an article becomes older than 2 days, reaches its Finish Publishing date, or when a scheduled article reaches its Start Publishing date, the news sitemap is rebuilt as well

The news sitemap is always available: there is no minimal delay between consecutive updates, and no rebuild period during which it cannot be loaded.

As long as it is enabled, the news sitemap is always added to your robots.txt file. It is removed from it when you disable the news sitemap.

When you enable it, 4SEO also submits it to Google, provided it is connected to your Google Search Console account. This is done only once: the news sitemap address never changes and Google then reads it regularly on its own. If the submission fails, 4SEO tries again about every hour until it succeeds.

If you enable the news sitemap before connecting 4SEO to the Search Console, the submission waits, and happens shortly after you actually perform the connection to the Search Console, if you choose to do so.

Sitemaps blocking by .htaccess or 3rd-party extensions

Section titled “Sitemaps blocking by .htaccess or 3rd-party extensions”

4SEO sitemap, located at https://www.example.com/sitemap-4seo.xml, is not a real file, sitting on your web server disk. Instead, it’s rendered by Joomla just like any other page of your website. The same goes for the news sitemap, located at https://www.example.com/sitemap-4seo.news.xml.

However, some 3rd-party extensions, or your server .htaccess file, can sometimes block .xml or .txt files. If that happens, a 404 error page generated by your webserver will be displayed when trying to access your sitemap.

Make sure to configure your .htaccess file correctly to leave access to .xml files. Likewise, configure 3rd-party extensions such as Admin Tools to allow 4SEO sitemap files to be read by search engines normally.

Manually adding or removing pages from sitemaps

Section titled “Manually adding or removing pages from sitemaps”

While the sitemap creation process is entirely automatic, including selecting canonical URLs and checking robots.txt file exclusion, you can manually remove or add back individual pages as you see fit.

Go to the Pages page and use the Sitemap column to exclude/include pages:

View of a sample 4SEO pages list with sitemap selector highlighted

Adding pages to sitemap with a custom file

Section titled “Adding pages to sitemap with a custom file”

In some rare cases, you may want to add to your sitemap pages or assets that 4SEO has not discovered or found useful in terms of SEO. You can easily do this by listing them in a file located at the root of your site.

You can create one or both of these files:

  • sitemap-4seo-custom.txt
  • sitemap-4seo-custom.xml

If one or both of these files are found at the root of your site when 4SEO creates or updates your sitemap, they will be included for search engines to read them.

This file is a simple text file where you can only list page addresses. Do not list images or videos in this file: search engines will only accept website pages when using a text file.

Just list the desired page addresses, one per line:

https://www.example.com/some/url-1
https://www.example.com/some/url-2
https://www.example.com/some/url-3.html

This file is a regular sitemap. You can list there page addresses as well as images or videos. However, you must use a valid sitemap format for it.

  • Regular sitemap example
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/some/url-1</loc>
</url>
<url>
<loc>https://www.example.com/some/url-2</loc>
<lastmod>2021-01-20T16:45:08Z</lastmod>
</url>
</urlset>
  • Example with images
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://www.example.com/some/url-1</loc>
</url>
<url>
<loc>https://www.example.com/some/url-2</loc>
<image:image>
<image:loc>https://www.example.com/images/logo.svg</image:loc>
</image:image>
<image:image>
<image:loc>https://www.example.com/images/product.jpg</image:loc>
<image:caption>A wonderful product</image:caption>
</image:image>
</url>
</urlset>

Once a sitemap has been created, or each time it’s updated (pages added or removed), 4SEO will publish it.

There are 2 ways your site can advertise the presence of a sitemap file:

  • through your robots.txt file
  • by directly submitting it to Google

4SEO can do both, unless you tell it otherwise using the Settings toolbar button of the Sitemaps page. See the Settings page for more details.

IndexNow is a mechanism used by several search engines to be informed of pages that have just been modified on your site. You can think about it as a complement to your sitemap:

  • valuable pages are listed in your sitemap
  • if one of them is modified, use IndexNow to inform participating search engines of the change

Originally a Microsoft Bing initiative, the following search engines participate in IndexNow as of the start of 2023:

  • Microsoft Bing (and Yahoo as a consequence, Yahoo being powered by Bing)
  • Yandex
  • Seznam.cz

You can submit a page to IndexNow just after you made significant changes to it. All participating search engines are automatically informed of your submission. Each search engine then may come back to load the page and update their data.

This may increase the speed at which your website changes are indexed by search engines.