URL Structure
10-20 minBeginner
Magento is famous for its .html extensions and category path options.
Medium Recommended
Configuration
Global settings.
1
Remove .html (Optional)
1
Stores > Configuration > Catalog > SEO
2
Product URL Suffix: .html (Clear this to remove it)
3
Category URL Suffix: .html (Clear this to remove it)
4
Warning: Changing this on a live site causes massive 404s unless redirected
2
Category Paths
1
Use Categories Path for Product URLs: No
2
This produces cleaner URLs (/product-name) vs (/category/product-name) and avoids duplicate content
Verification Checklist
- Reindex required (bin/magento indexer:reindex)