Log in
Model

UrlRewrite

Magento\UrlRewrite\Model\ResourceModel\UrlRewrite

What it does

This resource model handles database operations for URL rewrites in Magento 2.

Developers use this class when they need to persist or retrieve URL rewrite data from the url_rewrite table, with built-in support for store-specific rewrites and ensuring unique request paths per store.

It's particularly useful when programmatically managing SEO-friendly URLs or custom routing rules.