The manual will show you that that particular directive is only valid in the context of the server config and the virtual host and it is not valid in a .htaccess
file.
So add those directives to /etc/httpd/conf/httpd.conf
or any of the Include files that make up the server configuration.
Additionally: my pet peeve, quoted from from the manual on .htaccess files:
You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can include in a .htaccess file is better set in a Directory
block in the main Apache configuration file(s), as it will have the same effect with better performance.
Assuming you read the manual and the Directives you were trying to use are valid in .htaccess files in the first place...