Redirect 301 without loosing URI


I have create a redirect from to via the below syntax. The problem which now I am looking at is if a user access it will be redirected to and not to Thus I am loosing the URI path.

For the redirection I have created an acl

acl wiki_acl_redirect hdr_reg(host) -i ^wiki.(charlot).com$

Then I have used the redirect list below
redirect code 301 location if wiki_acl_redirect

Thankyou and appreciate your help

Use redirect prefix instead:

redirect code 301 prefix if wiki_acl_redirect

Worked thanks a lot @lukastribus