主站商品URL是shirt.html,法语站同一商品变成shirt,其他都正常。这个配置有Scope,Default里的 .html不代表所有Store继承。先查目标Store的实际值。
bin/magento config:show catalog/seo/product_url_suffix --scope=stores --scope-code=fr_store bin/magento config:show catalog/seo/category_url_suffix --scope=stores --scope-code=fr_store
后台切到Store View,看Use Default是否被取消、值却留空。修正后保存一个测试商品或重建catalog_url索引,观察url_rewrite的request_path。
SELECT store_id,request_path,target_path FROM url_rewrite WHERE entity_type='product' AND entity_id=<product_id> ORDER BY store_id;
自定义链接也可能绕过后缀
模板里手拼 url_key不会自动带suffix,应使用Product URL Model并传当前Store。Cron生成Feed时若没有store emulation,也会拿默认站配置。
改后缀涉及SEO,旧URL要有单次301到新URL,sitemap与canonical同步更新。不要直接批量删除url_rewrite而不保留历史重定向。

