/test /demo#ref

The above rule will cause https://redirect-with-anchor.netlify.rodeo/test to redirect to /demo#ref.