-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jérémie,
On 6/20/17 9:32 AM, Jérémie Barthés wrote: > http://192.168.1.1:8080/visibleURL/servlets/ URL displayed = > http://192.168.1.1:8080/visibleURL/servlets/ page displayed = > http://192.168.1.1:8080/examples/servlets/ > > http://192.168.1.1:8080/visibleURL/servlets URL displayed = > http://192.168.1.1:8080/examples/servlets/ page displayed = > http://192.168.1.1:8080/examples/servlets/ > > i don't want http://192.168.1.1:8080/examples/servlets/ to be > displayed ! What do you mean "URL displayed" and "page displayed"? It sounds like you want the URL to look exactly as it does look. - -chris > Le 20/06/2017 à 15:26, Jérémie Barthés a écrit : >> 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 >> >> > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAllJSJQACgkQHPApP6U8 pFhITA/+OeOSADj+aeTCoCZC2q1n8+uzen6pYGNjI22Kk7iZnf529WueXfNaH9U7 6TqF+mfYf5H2gkHQR9Ht+8zDmUzzJsBLK+fKHyBplxU8o1jeC+QmhxC++OgEBVsI DwEzqHKexGqsqkY2ua37gZm0EVra5HaQbbrPGP2RLqT3JWbx2rMAdEWlsz+mYn81 RBmLWnT3hr4r3xhE799dP/f2IP5uz0akdh68B+4rEnmsMvy3rHfalGt3Jv2yOClr ompHO+C4ThRdcH8Zn0Y7MOwjvdkAZ1u9DLh84xpz2a33gHJnzz0I+p7cMtbpQVPf 8Z7S+692z4TD2GD0MSedUnNy3ryNvFG8UQZXBJ/pg83ZjmGNHe2orKnqMKgaTGhk lplXZp1R6wqe2lLdJfyTsK2Lv75/oj+8FbNClfms4blcodmVPKcQq5c23tOx7QBe RLZpTarNtzWK+3zEgOOSMlkkuuqXvuPNmgkZ7efachk6Lr+gp4nJ9uPbwMrTrVE/ F/ZHhV8nkE2r13fpoi9g2P32VCl9GSqBtJGeOYC4YHHwmmz6SjtT5XbU14XMj28m lBMyuRmHeP5OsP6yvuaYUa64tMqaUP95/Rhry1Ne7e6R4LRMSqPR7nwKmZxn0kVu JpCTkf/p9PRmB/S9752JxgwDeKBfcubajRSNI65sXLB5tljhDSE= =nU9X -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
