github.com/hexonet/dnscontrol@v0.2.8/docs/_functions/domain/CF_TEMP_REDIRECT.md (about) 1 --- 2 name: CF_TEMP_REDIRECT 3 parameters: 4 - destination 5 - modifiers... 6 --- 7 8 `CF_REDIRECT` uses CloudFlare-specific features ("page rules") to 9 generate an HTTP 301 redirect. 10 11 WARNING: If the domain has other pagerules in place, they may be 12 deleted. At this time this feature is best used on bare domains 13 that need to redirect to another domain, perhaps with wildcard 14 substitutions. 15 16 {% include startExample.html %} 17 {% highlight js %} 18 D("foo.com", .... , 19 CF_TEMP_REDIRECT("example.mydomain.com/*", "https://otherplace.yourdomain.com/$1"), 20 ); 21 {%endhighlight%} 22 {% include endExample.html %}