我如何将某些上下文(例如/ manager / host-manager URL)作为tomcat hostmanager重定向到默认应用程序URL。我正在使用Apache httpd 2.4和tomcat版本7。我尝试了以下操作,但没有重定向
Redirect permanent / https://www.example.com
Redirect /host-manager/* https://www.example.com
RedirectMatch permanent ^/(.*)$ https://www.example.com
Redirect permanent "/" "https://www.example.com/"
RedirectMatch /host-manager/(.*)$ https://www.example.com/
RedirectMatch 403 "https://www.example.com"
RewriteEngine on
RewriteRule ^(.*)$ https://www.example.com/loginpage