当前位置:网站首页>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 .
边栏推荐
- Make a ThreadLocal (source code) that everyone can understand
- R language triple becomes matrix matrix becomes triple
- Redis持久化
- QT 如何在背景图中将部分区域设置为透明
- External memory
- my. INI file configuration
- 522. 最长特殊序列 II / 剑指 Offer II 101. 分割等和子集
- enable_ if
- Multithreading Basics (III)
- [advanced MySQL] MTS master-slave synchronization principle and Practice Guide (7)
猜你喜欢

做一篇人人能搞懂的ThreadLocal(源码)

Redis master-slave replication, sentinel mode, cluster cluster

Implementing springboard agent through SSH port forwarding configuration

Pri3d: a representation learning method for 3D scene perception using inherent attributes of rgb-d data

Hyperledger Fabric 2. X custom smart contract
![[WUSTCTF2020]girlfriend](/img/a8/33fe5feb7bcbb73ba26a94d226cc4d.png)
[WUSTCTF2020]girlfriend

AQS抽象队列同步器
![[OS command injection] common OS command execution functions and OS command injection utilization examples and range experiments - based on DVWA range](/img/f2/458770fc74971bef23f96f87733ee5.png)
[OS command injection] common OS command execution functions and OS command injection utilization examples and range experiments - based on DVWA range

Integration of entry-level SSM framework based on XML configuration file

【PHP代码注入】PHP语言常见可注入函数以及PHP代码注入漏洞的利用实例
随机推荐
What kind of experience is it to read other people's code
基于 Nebula Graph 构建百亿关系知识图谱实践
NLP - monocleaner
优雅的自定义 ThreadPoolExecutor 线程池
June 27, 2022 Daily: swin transformer, Vit authors and others said: a good basic model is the simple pursuit of CV researchers
清华&商汤&上海AI&CUHK提出Siamese Image Modeling,兼具linear probing和密集预测性能!...
【每日3题(3)】盒子中小球的最大数量
解析Activity启动-生命周期角度
What is the difference between the FAT32 and NTFS formats on the USB flash disk
enable_ if
Li Kou's 81st biweekly match
[daily 3 questions (3)] maximum number of balls in the box
Bidding announcement: Oracle all-in-one machine software and hardware maintenance project of Shanghai R & D Public Service Platform Management Center
注解学习总结
反射学习总结
AQS抽象队列同步器
522. longest special sequence II / Sword finger offer II 101 Split equal sum subset
OpenSSF安全计划:SBOM将驱动软件供应链安全
基于SSM的Web网页聊天室系统
Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and the mobile phone can easily read literature