Rematch¶
target-rematch-name¶
Overrides the original rematch-name in metadata. It can be matched with the REMATCH-NAME rule.
target-sub-rule¶
If set, matching continues with the specified sub-rule. If the name does not exist or is empty, matching falls back to the main rules.
Usage Examples¶
Mark and Continue Matching Main Rules¶
When a request first matches DOMAIN-SUFFIX,netflix.com,mark-streaming, mark-streaming writes rematch-name: streaming and enters rule matching again. On the next pass, REMATCH-NAME,streaming,Streaming matches first.
Note
Put the REMATCH-NAME rule before the rule that triggers rematch, otherwise the next pass can hit the same rematch outbound again and form a cycle.
Jump to a Sub-Rule¶
After a request matches use-ai-rules, matching continues with the ai-rules sub-rule. When the sub-rule exists, it is recommended to include a MATCH fallback.