Skip to content

🚀 Prefix Match Redirect

Matches URLs that start with a specified string, ideal for domain and path redirection.

Configuration Rule

# Prefix Match Test Configuration
^dev.localhost####https://development.example.com
^api.localhost####https://api.example.com
^localhost:8####https://development.example.com
staging.internal*####https://staging.example.com

💡 Rule Description

Use the ^ prefix or * suffix for a prefix match. It's recommended to use standard domain formats.

  • Recommended Formats: Use .localhost, .local, or localhost with a port.
  • Use Cases: Development environments, internal network domains, services on specific ports.
  • Note: Simple strings (like dev, api) might be treated as search queries when typed directly into the address bar.
  • Best Practice: Use with bookmarks, link clicks, or programmatic access for best results.

How to Test

Released under the MIT License.