The $ characters denote the end of the string. Get rid of them if you want /test1/blah to match as well as /test1.
Edit: To send a redirect response to the browser add either redirect (for a 302 response) or permanent (for a 301 response) as a flag to your rewrite lines:
Just get rid of the space after the
^
, and add the required;
:The
$
characters denote the end of the string. Get rid of them if you want/test1/blah
to match as well as/test1
.Edit: To send a redirect response to the browser add either
redirect
(for a 302 response) orpermanent
(for a 301 response) as a flag to yourrewrite
lines: