A .htaccess file is for Apache web server, as far as I know Tomcat does not use this file. What you would need is to have your apache web server serve tomcat files through a proxy, or have some other...