Back to the knowledgebase

I have two redirects that could match the same URL- which one wins?

When more than one redirect could potentially match the same incoming URL, Retour uses a priority system to determine which one fires.

How priority works
Every redirect has a priority value between 1 and 9. When multiple redirects match a URL, the one with the highest priority value takes effect. If two redirects have the same priority, the most recently created one will generally win.

Default priority
Redirects are created with a default priority of 5. If you have a redirect that should always take precedence over others that might match the same URL, increase its priority to a higher number such as 8 or 9.

Exact match vs pattern match
When an incoming URL matches both an exact match redirect and a pattern-based redirect, the exact match will generally be preferred regardless of priority, as exact matches are checked and resolved first. Use a higher priority on a pattern redirect only when you need it to override another pattern redirect.

Resolving conflicts
If two redirects are conflicting and sending visitors to unintended destinations, open both in the Redirects list and review their source URL patterns and priority settings. Adjust the priority of the correct redirect upward, or refine the source URL pattern of the redirect that should have the narrower scope.

Similar articles