HTACCESS on server

Job ID: 34114508

Budget: €8 – €30 EUR

Hi

I want protect a folder and it files (all type extensions) from users, but YES from index.php

On localhost, I did this htaccess (check attached file), but, when upload to web server hosting, it no works like localhost.

Can anyone help me to fix on web hosting server?

Best regards
Related categories: PHP Linux Apache