The page has an example that does exactly what I needed:
$host_without_www. And at the same time I understand better how the
variables work, how rewriting works and how to create new variables.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.