Dynamic URL with rewrite rule not working

There’s nothing wrong with my code. Maybe it was not refreshed instantly so the changes did not propagate right away.