> From: Blueberry [mailto:sandro.lamp...@zeitag.ch] > Subject: RE: tomcat directing > > Okey, I'm sorry for my bad English...
The English was fine, it was the content of the question that was lacking. > if the url contains more than "http://srv01/" e.x. "http://srv01/instance" > then he should redirect to "http://srv01". > my question is: where is the file (or which filename does this file > have), where the filter are wrotten in? Much better. You're still missing some details, such as the Tomcat version you're using, so we'll assume you're on a current one. You'll want your webapp deployed as ROOT (case sensitive, even on Windows), since ROOT is the default webapp. Read the servlet spec for how to specify filters in the WEB-INF/web.xml file. There's already a general purpose, highly configurable rewrite filter available to drop into any webapp, so you don't need to write your own. Look here for details: http://tuckey.org/urlrewrite/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org