Skip to content

🔧 URL Template Replace

Perform complex URL rewriting using wildcards and placeholders.

Configuration Rule

# URL Template Replace Test Configuration
old-domain.com/*####new-domain.com/{1}
example.com/*/page/*####https://newsite.com/{1}/newpage/{2}
user.com/profile/*####newuser.com/{1}/dashboard/{1}

💡 Rule Description

Use the * wildcard to capture URL segments and reference them with {1}, {2}, {3} placeholders.

  • Supports domain migration while preserving path structure.
  • Allows for reorganizing URL structures.
  • Placeholders can be reused or selectively used.
  • Ideal for complex URL rewriting needs.

How to Test

Released under the MIT License.