I am trying to set up a 301 redirection from "/cgi-bin/" to https://example.com/test/ with the following rule in .htaccess file:
Redirect 301 /cgi-bin/ https://example.com/test/
but I get a 403 Forbidden error. Commenting Options -Indexes does not work either. If I remove the slash after "/cgi-bin/", the the redirection works.
The directory "cgi-bin" does not actually exist on the server, however since the URL https://example.com/cgi-bin/ was mentioned in our old documentations, we explicitly need a redirection with the tailing slash after "/cgi-bin".