UrlEdge
Advanced Routing

Dynamic Rules

Go beyond simple 1:1 redirects. Use patterns to match thousands of URLs with a single rule.

Wildcards (*)

Simple Pattern Matching

Use the asterisk * to match any string of characters. You can use it at the end of a path or in the middle.

Source Path
Matches
/blog/*
/blog/post-1, /blog/2023/news
/users/*/settings
/users/john/settings
Destination Replacement: Use $1, $2, etc. in the destination URL to insert the matched wildcard content.
Example: Source /blog/* → Destination https://medium.com/@myblog/$1

Regular Expressions

Power User Matching

For complex validation (e.g., matching only numeric IDs), use standard PCRE regex syntax.

Match User IDs (Numeric Only)

^/user/(\d+)$

Matches /user/123 but NOT /user/abc.

Match Specific Extensions

\.(jpg|png|gif)$

Matches any image request ending in .jpg, .png, or .gif.

Query Parameters

By default, UrlEdge preserves query parameters (e.g., ?utm_source=google) when redirecting.

  • If Source is /shop and Destination is /store
  • Request /shop?id=5 becomes /store?id=5 automatically.
Note: You can disable this per-rule in the "Advanced Settings" toggle of the Redirect Editor.