Rewrite rule issue

Hello,

I have a rewrite issue with OLS. I am trying to redirect one page to another, but for some reason it is not working. Here is my redirect:

RewriteEngine on
RewriteRule ^/my-account/$ https://car-offers.com/search/ [L,R=301]

Is there somethin I am missing?

Thanks.