I added a .htaccess file into a directory, after that, the whole directory became inaccessible with 500 error.
This is my code:
.htaccess
Redirect 302 /something_here.pdf https://my-domain.tld/something/there/hello-hi.html