Hi,
I have some issues with my brand new tomcat 9.0.0.M21
I just unzipped *windows-64 core*
Then i added the *RewriteValve *in *conf/server.xml*
/ <Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true">//
// ................//
// <Valve
className="org.apache.catalina.valves.rewrite.RewriteValve"/>//
// </Host>/
Then i added a rewriteRule in */conf/Catalina/localhost/rewrite.config*
file :
/RewriteRule ^/visibleURL/(.*)$ /examples/$1/
Then i started tomcat with startup.bat (my IP is 192.168.1.1)
in Firefox, i go to _*http://192.168.1.1:8080/visibleURL/servlets/ *_
The URL displayed by firefox
is/**//http://192.168.1.1:8080/visibleURL/servlets// and the page
displayed is /http://192.168.1.1:8080/examples/servlets/ /
now i go to *_http://192.168.1.1:8080/visibleURL/servlet__s_
*The URL displayed by firefox is
/http://192.168.1.1:8080/examples/servlets//**and the page displayed is
/http://192.168.1.1:8080/examples/servlets/ /*
*
I really want my users to see "visibleURL" in the URL displayed by
firefox even if they forget to type a "/". I don't want them to see
"examples"
Where did i go wrong ?
Please Help
Thanks a lot
Jeremie