Note: This feature is currently under development and not yet available. The following examples illustrate how it will work once implemented.
When setting up URL forwarding (coming soon), you’ll be able to use the following dynamic placeholders to customize the destination URL based on the incoming request:
| Placeholder | Description |
|---|---|
{*host*} | Full hostname including subdomain (e.g. www.current.com) |
{*domain*} | Root domain only (e.g. current.com) |
{*subdomain*} | Subdomain part only (e.g. login in login.current.com) |
{*wildcard*} | Matches any subdomain in the request (e.g. shop in shop.current.com or blog in blog.current.com) and inserts it into the destination URL. |
URL forwarding allows you to redirect subdomains of your domain (like www.current.com) to a different destination. You’ll be able to use dynamic variables to customize where users are sent.
Examples of Using Placeholders for URL Forwarding
Example 1: Basic Host Redirect
- Host:
www - Points to:
http://{*domain*}/?ref={*host*} - What happens: Visiting
http://www.current.comredirects tohttp://current.com/?ref=www.current.com
Example 2: Full Host Reference
- Host:
promo - Points to:
http://target.com/?ref={*host*} - What happens: Visiting
http://promo.current.comredirects tohttp://target.com/?ref=promo.current.com
Example 3: Subdomain Only
- Host:
login - Points to:
http://target.com/?ref={*subdomain*} - What happens: Visiting
http://login.current.comredirects tohttp://target.com/?ref=login
Example 4: Wildcard Subdomain Redirect
- Host:
* - Points to:
http://{*wildcard*}.target.com - What happens: Visiting
http://shop.current.comredirects tohttp://shop.target.com,http://blog.current.comredirects tohttp://blog.target.com, etc.
Summary
{*host*}– Full host (e.g.www.current.com){*domain*}– Base domain (e.g.current.com){*subdomain*}– Subdomain only (e.g.login){*wildcard*}– Subdomain when using*as Host
Stay tuned for updates when this feature goes live!