Tomcat version: 8.0.22 jdk: 1.8.0_05 I have a webapp that uses a tomcat server behind a load balancer.
I recently added a the option to connect to my webapp via https. I would like to redirect all http requests to https. I achieved this by implementing the instruction outlined here: https://elastx.zendesk.com/hc/en-us/articles/214238826-Force-https-with-Tomcat However, I notice that this performs a redirect with repsonse code 302 (moved temporarily). I would like the response code to be 301. I found this bug report on the matter: https://bz.apache.org/bugzilla/show_bug.cgi?id=59399 Does this mean that in order to achieve a 301 redirect, I need to update my tomcat version? Is there anyway to achieve a 301 redirect without updating the tomcat version? Thank you.