I want to redefine the base URL of a Tomcat webservice, mounted with JkMount. I tried the following:
JkMount /myapp/* ajp13_worker
RewriteRule ^/service/v1/(.*)$ /myapp/$1 [PT,QSA]
The original URLs work, for instance:
/myapp/
/myapp/brand
/myapp/classified?idBrand=0&priceMax=&page=1
The URL that I was trying to obtain were:
/service/v1/
/service/v1/brand
/service/v1/classified?idBrand=0&priceMax=&page=1
But they return 404 (from Apache, not from Tomcat). How to make it work?
UPDATE: I just forgot
RewriteEngine on
now it works.