🚀 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
, orlocalhost
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
Recommended Test:Enter
dev.localhost
or localhost:8000
in the address bar.Programmatic Test:staging.internal.example.com
Expected Result:Automatically redirects to the corresponding development or staging environment.