Redirect after the filter intercepts the domain name

the www.abc.com domain name is resolved on the server. It is configured in tomcat and can be transferred to the home page directly through the domain name.
later asked that abc.com can also achieve input jump, what are the ways to achieve it. It doesn"t feel good to add a filter to find that the request path is redirected from abc.com to www.abc.com,. Currently, abc.com only resolves to the server and is not configured. If you enter it, it will be the default page of tomcat

.
Mar.22,2021

<Engine defaultHost="www.abc.com" name="Catalina">

<Host name="www.abc.com" appBase="app" unpackWARs="true" autoDeploy="true">
    <Alias>abc.com</Alias>  
     <Context path="" docBase="" debug="0" reloadable="true" ></Context>    
  </Host>  
</Engine>          

you can configure server.xml of tomcat through alias

Menu