Skip to content Skip to sidebar Skip to footer

Where to place sitemap in an opencart Website

Where To Place Sitemap In An Opencart-website

In OpenCart, the sitemap.xml file should be placed in the root directory of your OpenCart installation. This is typically the same directory where the index.php file is located. Once it is placed, you can access the sitemap by visiting the URL of your website, followed by /sitemap.xml. For example, if your website’s URL is “www.example.com,” you would access the sitemap by visiting “www.example.com/sitemap.xml“.

BUT remember one thing , this thing to work is 

comment 

#RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]

this line in your opencart htaccess file.

From where you can create the sitemap?

You can create a sitemap for FREE for about 500 links from https://www.xml-sitemaps.com/

When to create your sitemap?

A sitemap should be created when a website is first launched, and should be updated whenever new pages or content are added to the site. This will help search engines like Google to more easily discover and index the website’s pages, making it more likely to appear in search results. Additionally, having an up-to-date sitemap can also make it easier for users to navigate the site.