Have you tried to "END" the rewrite rule below to prevent recursion (see the [mod_rewrite docs](https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html)).