Priority
When multiple redirect rules match a request, Priority allows you to control which rule should take effect.
By default, AlterURL will evaluate all applicable redirect rules. If more than one rule matches, the redirect with the highest priority value will be selected.
How It Works
- Each redirect rule includes an optional priority field (number).
- Higher number = higher priority.
- If two or more rules match a request, the one with the highest priority wins.
- If priorities are equal (or unset), fallback logic based on rule updated date will apply.
Example
You have two rules:
Redirect all mobile users to /mobile-home
— Priority: 10
Redirect all Black Friday campaign traffic to /black-friday-deals
— Priority: 100
If a mobile user clicks a Black Friday campaign link, both rules match. Because Rule 2 has a higher priority, the user is redirected to /black-friday-deals
.
Best Practices
- Use high priority (e.g., 100+) for time-sensitive or campaign rules
- Use mid-range (e.g., 50) for category or device-based rules
- Use low priority (e.g., 10) for fallback or default rules