Why .htaccess driving?

In short, the situation is this: there is a site on Beget on the site need to make a simple .htaccess. Here is the file itself
Options +ExecCGI
RewriteEngine on

RewriteRule ^home/(.*)$ /cgi-bin/index.rb?__query__=$1&%{QUERY_STRING}
RewriteRule ^repo/([a-zA-Z.-_]{3,})!(.+) repo/?name=$1&version=$2
RewriteRule ^repo/(.*) repo/?name=$1

So, this code produces an error 500. But what is most interesting, it works fine if I comment out the last rule. Have checked all possible linters, copied four times - the same garbage. And it does not work even when there is one. What is the salt people?
July 2nd 19 at 16:59
1 answer
July 2nd 19 at 17:01
I think the salt in recursion - repo/... -> repo/?name=... once again falls under the rule.
Oh, my God... Just, thank you - Trey_Whi commented on July 2nd 19 at 17:04

Find more questions by tags htaccessApacheProcessing URL