Hi,
I’m a newbie to tomcat. I’ve installed tomcat on my unix system using the tar.gz distribution. I want to redirect request to one(let’s say XYZ) of my apis to other(let’s say ABC). So the request http://localhost:8080/XYZ/select?a=b should get redirected to http://localhost:8080/ABC/select?a=b.
I placed the urlrewrite-4.0.0.jar inside pathToTomcatExtractionFolder/lib folder
I edited the web.xml file present inside pathToTomcatExtractionFolder/conf/web.xml and added :
UrlRewriteFilter
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter
logLevel
WARN
UrlRewriteFilter
/*
I’ve placed urlrewrite.xml inside pathToTomcatExtractionFolder/conf/. and defined this rule inside it:
/XYZ/select?(.*)
/ABC/select?$1
After this I restarted the tomcat but even then when I call http://localhost:8080/XYZ/select?a=b in my browser, it’s not getting redirected.
Thanks in advance,
Suryansh