On 13/10/2019 23:46, Garret Wilson wrote:
> On 10/13/2019 11:52 AM, Mark Thomas wrote:
>> That depends on how you define best. Simplest to implement? Easiest to
>> maintain? Minimum overhead?
> 
> How about, "What best follows the spirit of the Tomcat architecture?"
> 
> Or alternatively, "What would be most efficient (i.e. not slowing down
> normal requests)?"
> 
>>
>> It also depends on how many redirects are you talking about as well as
>> what sort of % of the over all requests need to be redirected.
> 
> Let's say 100 resources need redirecting, to pick an arbitrary number.
> 
> (The use case is simply to migrate some old URLs that have probably been
> indexed already or even linked on the web. Theoretically the entire site
> would need to redirect its old URLs, but probably only the pages.)

For that use case I'd start with the RewriteValve.

If you notice a performance impact then we should take a look with a
profiler and see if there is room for improvement in the RewriteValve.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to