When product URLs behave unexpectedly, a direct look at Magento’s url_rewritetable can be useful. It stores public-facing paths, internal targets and redirects for product URLs. Use the following query to display URL rewrites for a specific SKU:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
SELECT p.sku, u.store_id, s.code AS store_code, s.name AS store_name, u.request_path, u.target_path, u.redirect_type FROM url_rewrite AS u JOIN catalog_product_entity AS p ON u.entity_id = p.entity_id LEFT JOIN store AS s ON s.store_id = u.store_id WHERE u.entity_type = 'product' AND p.sku = 'MEINE-SKU' ORDER BY u.store_id, u.request_path; |
request_path contains…