Skip to content

no-www dynamic redirect

to redirect from www. to the non-www host using dynamic redirects instead of page rules:

  1. create a new dynamic redirect rule
  2. When incoming requests match… click the edit expression box and paste the following (your www. hostname)
( eq "")
  1. Then... select Dynamic as the redirect Type the following expression and 301 as the Status Code
concat("", http.request.uri)
  1. you can also tick the box Preserve query string