We rebuilt our website from scratch and are still updating some extensions and pages. Having a problem? Sign in and open a support ticket or contact us.
JoomBoost

Robots.txt

robots.txt is the file in your site root that tells search engines which parts of the site they may visit. JoomSitemap lets you edit it in the administrator. Open Components > JoomSitemap > Robots.txt. The page title is JoomSitemap: Edit robots.txt.

The page shows the content of robots.txt in your Joomla folder. If the file does not exist, JoomSitemap tells you so and shows its default version instead. Nothing is written until you click Save.

Toolbar

Button What it does
Save Writes the text to robots.txt in your Joomla folder
Load default version Replaces the text in the editor with the JoomSitemap default. It is not saved until you click Save
Add Sitemap field Adds the line Sitemap: https://your-site/sitemap.xml and saves the file
Validate Checks the text with the rules the crawler uses
Options Opens the options

Save and Load default version need the Write Files permission. Without it, the text is read only. See Permissions.

Add the Sitemap line

Click Add Sitemap field. JoomSitemap checks that the sitemap file exists, adds the line at the end of the file and saves it. If Generate Compressed Version is on, the line points to sitemap.xml.gz.

  • Sitemap field already present. The line is already in the file. Nothing changes.
  • The XML sitemap is missing on your webspace The sitemap file has not been written yet. Click Write Sitemap in Manage URLs first.

Validate

Click Validate to check the text in the editor. The robots.txt file is syntactically valid. means the crawler can read it. Otherwise the message Invalid entry found names the line it cannot read.

After you type in the editor, Validate is greyed out. Click Save first. The page reloads with the saved file, and Validate works again.

The check accepts these lines: User-agent, Disallow, Allow, Crawl-delay, Sitemap, Host, Noindex, Content-signal, comments starting with # and empty lines. A line with any other directive, for example Clean-param or Request-rate, is reported as invalid, and the crawler also stops on it. See Troubleshooting.

The default version

The default robots.txt of JoomSitemap blocks Joomla's system folders for all search engines:

User-agent: *
Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/
Disallow: /components/
Disallow: /component/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /layouts/
Disallow: /libraries/
Disallow: /logs/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/

User-agent: JoomSitemapCrawler
Disallow: /images/sampledata/
Disallow: *?tmpl=component&print=1*

The last group is only for the JoomSitemap crawler. It keeps the sample images and the print view of articles out of your index. Note that it blocks /media/ and /templates/. Search engines may need CSS and JavaScript files from those folders to render your pages. Remove those lines if you want search engines to load them.

How the crawler uses robots.txt

At the start of each crawl, the crawler loads robots.txt from your site over HTTP. It applies the rules for User-agent: * and for User-agent: JoomSitemapCrawler. Use the JoomSitemapCrawler group to keep pages out of your index that search engines may still visit. * and $ in paths work as wildcards, the way Google reads them.

If your Joomla site is in a subfolder, this page edits the robots.txt in that folder. Search engines, and the JoomSitemap crawler too, only read robots.txt at the root of the domain, so edit that file on the server instead.

All Extensions