Censura Support

Sitemap

Sitemaps enable search engines to see every page in your site, so they can more easily index it's content. Since 2.3, censura has sitemaps built-in, using the sitemap protocol (accepted by Google, Bing, Yahoo). Please see the protocol documentation: http://www.sitemaps.org/protocol.php.

URL

If you have routing enabled, the URL of your sitemap to submit to the search engine is xml/sitemap/index.xml

If you do not have routing enabled the address is index.php?action=xml/sitemapIndex

Configuring the Sitemap

You can submit the sitemap as it is and it will work fine. If you want to control the priority and changefreq fields however, you can do this through your config file. To change the priority/changefreq field for a url (VendorIndex in this example) add the following line to your config file:

$cfg['sitemap']['urls_VendorIndex_priority'] = 0.6; $cfg['sitemap']['urls_VendorIndex_changefreq'] = 'yearly';

Use the action name with an uppercase first letter. If you added the line:

$cfg['sitemap']['urls_ProductDetail_changefreq'] = 'yearly';

It would set all product pages to a "yearly" changefreq. If you wanted to change just one product page, add the id (12 in this example):

$cfg['sitemap']['urls_ProductDetail_12_changefreq'] = 'yearly'; The same applies for reviews, categories, series and vendors. The same applies for users except use the username instead of the id. Static pages (eg templates added under the /themes/public//static/ folder) can be accessed using:

$cfg['sitemap']['urls_Static_pageName_changefreq'] = 'yearly';



Email newsletter sign up

Sign up to the Censura email newsletter to be kept informed of the latest developments with Censura