AW: AW: AW: Redirect with 301 for directory requested without trailing slash

2022-02-08 Thread Benny Kannengießer
tice to use 301 redirects to fully keep the page ranking of the page the request is redirected to. -Ursprüngliche Nachricht- Von: Mark Thomas Gesendet: Samstag, 5. Februar 2022 11:01 An: users@tomcat.apache.org Betreff: Re: AW: AW: Redirect with 301 for directory requested without trailin

AW: AW: AW: Redirect with 301 for directory requested without trailing slash

2022-02-06 Thread Thomas Hoffmann (Speed4Trade GmbH)
ble. Up to now I never got this kind of request from any SEO agency or customer. Greetings Thomas -Ursprüngliche Nachricht- Von: Mark Thomas Gesendet: Samstag, 5. Februar 2022 11:01 An: users@tomcat.apache.org Betreff: Re: AW: AW: Redirect with 301 for directory requested without trailing

Re: AW: AW: Redirect with 301 for directory requested without trailing slash

2022-02-05 Thread Mark Thomas
fairly low risk of problems there. Mark -chris -Ursprüngliche Nachricht- Von: Mark Thomas Gesendet: Donnerstag, 3. Februar 2022 17:41 An: users@tomcat.apache.org Betreff: Re: AW: Redirect with 301 for directory requested without trailing slash I didn't see a commit in the

Re: AW: AW: Redirect with 301 for directory requested without trailing slash

2022-02-04 Thread Christopher Schultz
rcumvent. What would be your opinion? Ugly and working beats pretty and useless any day IMHO. -chris -Ursprüngliche Nachricht- Von: Mark Thomas Gesendet: Donnerstag, 3. Februar 2022 17:41 An: users@tomcat.apache.org Betreff: Re: AW: Redirect with 301 for directory requested without tra

AW: AW: Redirect with 301 for directory requested without trailing slash

2022-02-04 Thread Benny Kannengießer
rsprüngliche Nachricht- Von: Mark Thomas Gesendet: Donnerstag, 3. Februar 2022 17:41 An: users@tomcat.apache.org Betreff: Re: AW: Redirect with 301 for directory requested without trailing slash I didn't see a commit in the code but I didn't look into what sendRedirect() does and I

Re: AW: Redirect with 301 for directory requested without trailing slash

2022-02-03 Thread Mark Thomas
I didn't see a commit in the code but I didn't look into what sendRedirect() does and I don't recall if there is a commit in there somewhere. The other option would be the wrap the response in the Filter and override setStatus() with something like: @Override public void setStatus(int status

AW: Redirect with 301 for directory requested without trailing slash

2022-02-03 Thread Benny Kannengießer
Hi Mark, thanks for the good idea! I just tried it - but it didn't work.. The response from Tomcat is still 302! I suspected that may be the response has already been sent on the wire, so I added some logging calling "response.isCommitted()" in my filter. Indeed, the logs show "true"! I haven't