Search engine robots use robots.txt and a sitemap to understand what to index. Mistakes in these files can hide a site from search. We have configured robots.txt and sitemaps for more than 120 sites and we know for sure: robots.txt and a sitemap are small files with a big impact on SEO. Let us look at it step by step.
What robots.txt Is
robots.txt is an instruction for robots:
- It indicates what can be indexed.
- What is forbidden.
- Where the sitemap is located.
- It is located in the site root.
A proper robots.txt is the foundation of indexing.
What a Sitemap Is
A sitemap is a list of pages:
- In XML format for search engines.
- It contains all important pages.
- It is updated when content is added.
- It helps robots find pages.
A sitemap speeds up the indexing of new pages.
Configuring robots.txt in Joomla
Create or edit the file:
- The file is in the site root.
- Allow indexing of what matters.
- Forbid the service folders.
- Specify the link to the sitemap.
Service folders must not be indexed.
What to Close in robots.txt
Usually the following are closed:
- The
administratorfolder. - The
cachefolder. - The
tmpfolder. - The
logsfolder. - Search pages.
Creating a Sitemap
In Joomla a sitemap is created via extensions:
- Install a sitemap component.
- Configure which pages to include.
- Specify the update frequency.
- Generate the XML sitemap.
Automatic updating is a mandatory function.
Connecting to Search Engines
After creating the sitemap:
- Add the sitemap to Google Search Console.
- Add it to Yandex.Webmaster.
- Check that the sitemap is available by URL.
- Make sure there are no errors.
Search engines must know about your sitemap.
Typical Mistakes
What to avoid:
- Banning indexing of the whole site in
robots.txt. - An outdated sitemap.
- A sitemap with broken links.
- An incorrect XML format.
Mistakes in these files are costly.
"robots.txt and a sitemap are small files with a big impact on SEO."
If you are not sure that these files are configured correctly — we have a SEF and Sitemap service: we will configure robots.txt, the XML sitemap and redirects in 1–2 days. And for a full analysis — SEO Audit.