当前位置:网站首页>About sitemap XML problems
About sitemap XML problems
2022-06-27 14:42:00 【Jerry Wang】
stay SAP Commerce in , have access to cronJob Generate XML Site map . This cronJob All pages in the current site will be collected , And build a with each page url The media files . A separate file will be created based on the page type . Later when using the old accelerator store ( Use Web The module configuration /yacceleratorstorefront Expand ) And access /yacceleratorstorefront/sitemap.xml url when , The site map index... Will be displayed , It contains references to all partial site maps .
Sitemaps allow webmasters to notify search engines of the pages on their site that are available for indexing . Accelerator Support different page types ( For example, product page and category page ) And site maps in different languages and currencies .
In the simplest form , The site map is a XML file , It lists the site's URL, And about each URL Other metadata for , So that search engines can index sites more intelligently . Examples of metadata include information about URL Last updated 、 Change the frequency 、 Relative to other in the site URL The importance of .
The site map passes through the following URL stay Accelerator China open :
http://electronics.local:9001/yacceleratorstorefront/sitemap.xml.
Here's a sitemap index An example of :
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://electronics.local:9001/medias/Homepage-ja-JPY-3422021852412885281.xml?context=bWFzdGVyfHJvb3R8MzQwfHRleHQveG1sfGgyNi9oNTUvODc5NzA3NjQyMjY4Ni54bWx8ODhkMDBhODYyMGU5OGY4YTRlMGVjNTE1MmVkMTgxOWYxNDBkOTU0MjU0MjRlZmZhODA5ZWNkY2Q2YzJlZmFhYg</loc>
</sitemap>
</sitemapindex>Accelerator In charge of generation sitemap Code for :SiteMapController.java
Customers often need a mechanism to automatically discover all Spartacus page (URL), To generate a site map , Or in the SSR/SSG Pre render them in . This is a task that spans components and modules , A lot of information and mechanisms need to be integrated :
- collect backoffice All of the definitions categories
- collect backoffice All of the definitions products
- collect Spartacus / All static defined in the client application Angular route
- Use Spartacus Routing configuration to shape specific PDP、PLP And the content page URL
- more
For some pages , You may want to generate canonical URL Alternatives . ( Be careful :Spartacus There are norms URL The function of , Used to place links in the current document <head> in ; Maybe it can be adapted in some way to generate site maps / URL Find out …)
For the product list , Collect what you want to index URL All facet combinations or search queries in
For content pages , Know all Spartacus CMS Driven sub routes . for example , There is a page tag in the background /store-finder A single content page , But in Spartacus in , At the top of the single content page CMS The driven sub routes are :/store-finder( Father )、/store-finder/view- All , /store-finder/country/:country, /store-finder/country/:country/region/:region, … . For specific functions , for example store-finder, You also need to collect all possible and valid dynamics URL Parameter combination ( for example :country、:region).
Because of the complexity ( The various mechanisms involved ) And scale ( A large number of products 、 Category etc. ), Find out all Spartacus The process of the page needs to be automated . To keep the site map up to date , The customer should run this process on a regular basis , To learn about content managers adding new pages 、 product 、 Frequency of categories and aspects .
边栏推荐
- E-week finance Q1 mobile banking has 650million active users; Layout of financial subsidiaries in emerging fields
- 反射学习总结
- 原子操作类
- Nvidia Deepstream 运行延迟,卡顿,死机处理办法
- Daily question 3 (2): check binary string field
- Gaode map IP positioning 2.0 backup
- Interpretation of new version features of PostgreSQL 15 (including live Q & A and PPT data summary)
- [xman2018 qualifying] pass
- 机械硬盘和ssd固态硬盘的原理对比分析
- How to set the compatibility mode of 360 speed browser
猜你喜欢

Redis持久化

ThreadLocal之强、弱、軟、虛引用

【业务安全03】密码找回业务安全以及接口参数账号修改实例(基于metinfov4.0平台)

LVI: feature extraction and sorting of lidar subsystem

Rereading the classic: the craft of research (1)

ReentrantLock、ReentrantReadWriteLock、StampedLock

【OS命令注入】常见OS命令执行函数以及OS命令注入利用实例以及靶场实验—基于DVWA靶场

SFINAE

PostgreSQL 15新版本特性解读(含直播问答、PPT资料汇总)

Is flutter easy to learn? How to learn? The most complete introduction and actual combat of flutter in history. Take it away without thanks~
随机推荐
Computer screen splitting method
A brief analysis of the differences between domestic and foreign e-commerce
【PHP代码注入】PHP语言常见可注入函数以及PHP代码注入漏洞的利用实例
How to solve the problem of missing language bar in win10 system
E-week finance Q1 mobile banking has 650million active users; Layout of financial subsidiaries in emerging fields
Rereading the classic: the craft of research (1)
522. 最长特殊序列 II / 剑指 Offer II 101. 分割等和子集
Domestic database disorder
Integration of entry-level SSM framework based on XML configuration file
Redis CacheClient
June 27, 2022 Daily: swin transformer, Vit authors and others said: a good basic model is the simple pursuit of CV researchers
[PHP code injection] common injectable functions of PHP language and utilization examples of PHP code injection vulnerabilities
[microservices sentinel] hotspot rules | authorization rules | cluster flow control | machine list
Jupiter core error
CAS comparison and exchange
Julia1.1 installation instructions
Use GCC to generate an abstract syntax tree "ast" and dump it to Dot file and visualization
CCID Consulting released the database Market Research Report on key application fields during the "14th five year plan" (attached with download)
Calcul de la confidentialité Fate - Prévisions hors ligne
清华&商汤&上海AI&CUHK提出Siamese Image Modeling,兼具linear probing和密集预测性能!...