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
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
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
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
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
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
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