Re: Redirect with 301 for directory requested without trailing slash

2022-02-02 Thread Mark Thomas
On 02/02/2022 15:21, Benny Kannengießer wrote: Hi, I wonder how I could achieve that Tomcat sends a 301 (permanent redirect) instead of 302 (temporary redirect) when a directory is requested without a trailing slash. Currently, when Tomcat receives a request like http:///some-directory

Redirect with 301 for directory requested without trailing slash

2022-02-02 Thread Benny Kannengießer
Hi, I wonder how I could achieve that Tomcat sends a 301 (permanent redirect) instead of 302 (temporary redirect) when a directory is requested without a trailing slash. Currently, when Tomcat receives a request like http:///some-directory it redirects to htt