Latest Blog Posts

Editing the OpenCart Homepage
29.09.2025 2666 3 44 min

Editing the OpenCart homepage, customizing H1 and Title text, displaying products and modu..

How to Uninstall Powered by OpenCart
03.09.2025 4135 3 20 min

Remove Powered by OpenCart and customize footer: edit template, use theme editor or OCMOD ..

How to remove modules in OpenCart
28.08.2025 2114 3 12 min

Step-by-step instructions for deleting modules in OpenCart 3 via the admin panel, manually..

Which hosting to choose for OpenCart
25.08.2025 1435 3 19 min

Find out which hosting to choose for an OpenCart online store. Requirements, selection cri..

Where is the OpenCart Sitemap file located?

4603 3 3 min
Where is the OpenCart Sitemap file located?

The Opencart XML Sitemap file (sitemap) is not physically stored anywhere; usually, the Sitemap is automatically generated using a special route that creates an XML sitemap when a specific URL is accessed. To get a sitemap in OpenCart, you can follow these steps:

Enabling a sitemap in the admin panel

  1. Go to your OpenCart admin panel .
  2. Go to the Extensions section.
  3. In the Extensions menu, select Feed . The map module is located in this section.
  4. Find the Google Sitemap extension and click the Install button if it is not already installed.
  5. After installation, click Edit .
  6. Set the status to Enabled .
  7. Specify the required settings and click the Save button.

Access to the site map

Once you enable the sitemap, you will be able to access it via the following URL:

 http://yourdomain.com/index.php?route=extension/feed/google_sitemap

where yourdomain.com is your domain.

Setting up CNC (Human-Readable URLs)

If you have friendly URLs enabled, the URL may look different, for example:

 http://yourdomain.com/sitemap.xml

This may require adding a rule to your .htaccess file to redirect.

Adding a sitemap to search engines

Once you have generated your sitemap, you can add this URL to Google Search Console or other search engines to help them index your site.

Example .htaccess configuration for a sitemap

 # Enable mod_rewrite support
RewriteEngine On

# If your site is not running in the root folder, please specify the appropriate directory
RewriteBase /

# Redirect requests to sitemap.xml to dynamically generate a sitemap
RewriteRule ^sitemap\.xml$ index.php?route=extension/feed/google_sitemap [L]

This .htaccess file fragment will direct requests to sitemap.xml to the appropriate route in OpenCart, which generates the sitemap.

5. Example sitemap.xml file

If you need to create your own sitemap.xml file, you can do it manually, although this is not recommended as dynamic sitemap generation is more flexible and up-to-date. However, as an example, a sitemap.xml file might look like this:

 <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 <url>
 <loc>http://yourdomain.com/</loc>
 <lastmod>2023-01-01</lastmod>
 <changefreq>monthly</changefreq>
 <priority>1.0</priority>
 </url>
 <url>
 <loc>http://yourdomain.com/category</loc>
 <lastmod>2023-01-01</lastmod>
 <changefreq>monthly</changefreq>
 <priority>0.8</priority>
 </url>
 <!-- Other URLs for your site here -->
</urlset>

Related Posts

OpenCart SSL: How to load all pages using HTTPS
17.04.2020 0 1 min

The article provides instructions on how to properly configure an SSL certificate throughout your si..

Google Analytics in OpenCart, how to add and configure code
12.04.2020 6 1 min

The Google Analytics code is installed in the Site Control Panel in the module in the Analytics sect..

Products related to this post

Fast Google Sitemap
699 грн.499 грн.
The Fast Sitemap for Google will cope with a huge amount of goods. Unlike the standard map, it does not load the site and does not..
Fixing duplicates in Sitemap
Free
The "Fix duplicates in Sitemap" modifier is a simple and effective solution for eliminating duplicate pages in the sitemap (/index..
Very Fast FX Sitemap
699 грн.499 грн.
The FX Sitemap module for OpenCart is designed for flexible generation of XML sitemaps with advanced customization options.Main te..
XML Sitemap Generator for Google
699 грн.499 грн.
The XML Sitemap Generator for Google module is designed to automatically generate correct sitemaps for Google search engines direc..
ChatGPT Consultant

Comments

Leave your comment or question
Где лежит файл sitemap.xml
Answer Admin
Вам стоит прочесть статью.
Посоветуйте хороший модуль для создания карты. Спасибо.
Answer Admin

Рекомендую использовать модуль автоматической генерация Sitemap OpenCart 3.x.

Как адрес отправить в google search console для индексации.
Answer Admin

Если используете стандартный модуль

https://site.com/sitemap.xml

Write Comment

Popular