K
K
Karl Meinhoff2016-11-14 16:10:08
Apache HTTP Server
Karl Meinhoff, 2016-11-14 16:10:08

Why .htaccess drives?

In short, the situation is as follows: there is a site on Beget, on that site you need to arrange a simple .htaccess. Here is the file

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

Well, this code throws a 500 error. But what is most interesting, it works fine if I comment out the last rule. Already checked with all possible linters, rewrote it four times - the same garbage. And it does not work even when there is one. What's the point, people?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-11-14
@KarleKremen

I think the salt in the recursion - repo/... -> repo/?name=... falls under the rule again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question