Sitemap configuration
This section will describe how sitemap file can be configured without code changes. File is generated daily.
It is good practice test all changes in our Test environment to make sure it is working as expected.
Pages
It is possible to configure which page is included in the sitemap file by going to Back Office -> content -> pages -> search for page eg. Spirit Home then click on it and check Included the site map.
Sitemap URLs for pages are composed from URL segment filed so it worth to check if it is correct. We may have some redirects setup so please check that as well.
Facets
It is possible to configure what facets we want to include per product type without code change.
This is can be done by updating store_config table. Probably best is test that first in Testing environment then ask data team to update the live system.
You can check what facets we have per product type either on our website or back office.
Below is snapshot of the table and what values we have at the moment.
id | store_id | name | value | is_request_attribute | version | created_by | created_on | last_modified_by | last_modified_on |
---|---|---|---|---|---|---|---|---|---|
744 | 10 | beer.case.facet.page.types | beer_case_type, container, brewery, beer_style | 1 | 1 | 1 | 2020-09-08 07:19:02 | 1 | 2020-09-08 07:19:02 |
750 | 10 | spirit.case.facet.page.types | spirit_case_type, price-band-spirit-cases, country | 1 | 1 | 1 | 2020-10-01 07:05:13 | 1 | 2020-10-01 07:05:13 |
478 | 10 | spirit.facet.page.types | spirits_category, brand, brandy_style, gin_style, grappa_style, liqueur_style, mezcal_style, pisco_style, rum_style, tequila_style, vermouth_style, vodka_style, whisky_style | 1 | 1 | 1 | 2019-07-10 09:35:11 | 1 | 2019-07-10 09:35:11 |
666 | 10 | wine.case.facet.page.types | case_category, country, grape_type_facet, wine_style, vegan, vegetarian | 1 | 1 | 1 | 2020-03-05 07:04:44 | 1 | 2020-03-05 07:04:44 |
477 | 10 | wine.facet.page.types | wine_category, country, wine_region, grape_type_facet, wine_style, medal_winner, vegetarian, vegan, kosher,biodynamic, organic, is_fine_wine, is_discounted, price_band_wines, is_low_alcohol, is_no_alcohol | 1 | 1 | 1 | 2019-07-10 09:35:11 | 1 | 2019-07-10 09:35:11 |
Exclude some URLs
We can exclude some URLs from the file. Most of the links in the sitemap are generated automatically so we may want to exclude some URLs.
This can be done by editing vwshopExcludeUrls.txt file which is stored on the server - please talk to our sys admins to get latest copy - Please see below example of the file.