/test /demo#ref
The above rule will cause
/test
to redirect to
/demo#ref
.