Re: URL rewrite in tomcat 7

2015-02-25 Thread Baran Topal
Hi; Tuckey plugin did the trick. Thanks for the help. Br. 2015-02-24 20:30 GMT+01:00 André Warnier a...@ice-sa.com: Baran Topal wrote: Hi; Thanks for the swift replies. I am not allowed to tuckey's rewrite (at least until i cannot find a normative Tomcat solution). I looked for the

Re: URL rewrite in tomcat 7

2015-02-24 Thread Baran Topal
Hi; Thanks for the swift replies. I am not allowed to tuckey's rewrite (at least until i cannot find a normative Tomcat solution). I looked for the documentation for 7.0. and Alias under Host is my solution however, after rewriting, i bookmark the page and want to reach via bookmark but it fails

Re: URL rewrite in tomcat 7

2015-02-24 Thread André Warnier
Baran Topal wrote: Hi; Thanks for the swift replies. I am not allowed to tuckey's rewrite (at least until i cannot find a normative Tomcat solution). I looked for the documentation for 7.0. and Alias under Host is my solution however, after rewriting, i bookmark the page and want to reach via

Re: URL rewrite in tomcat 7

2015-02-07 Thread Ben Stringer
On 7 Feb 2015, at 10:53 pm, Baran Topal jazziiil...@gmail.com wrote: Hi I have a tomcat 7 instance in which i need use alias for my domain. Essentially, the alias http://test1/ would replace the http:/myaddress.com and its sub addresses It is not a redirect, rather rewrite of the

RE: URL rewrite in tomcat 7

2015-02-07 Thread Caldarale, Charles R
From: Baran Topal [mailto:jazziiil...@gmail.com] Subject: URL rewrite in tomcat 7 I have a tomcat 7 instance in which i need use alias for my domain. Essentially, the alias http://test1/ would replace the http:/myaddress.com and its sub addresses It is not a redirect, rather rewrite of

Re: URL rewrite

2011-08-09 Thread Pid
On 08/08/2011 20:36, Mohit Anchlia wrote: I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed headers of my servlet and this is what I see. I used

Re: URL rewrite

2011-08-09 Thread Mohit Anchlia
On Tue, Aug 9, 2011 at 1:30 AM, Pid p...@pidster.com wrote: On 08/08/2011 20:36, Mohit Anchlia wrote: I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed

Re: URL rewrite

2011-08-09 Thread Konstantin Kolinko
2011/8/9 Mohit Anchlia mohitanch...@gmail.com: Is this a Tomcat or an HTTPD question? tomcat. As I understand tomcat support URL Rewriting similar to mod_rewrite. No, it does not. There are 3rd party external filters that may do the job, e.g. http://www.tuckey.org/urlrewrite/ but they are

Re: URL rewrite

2011-08-09 Thread André Warnier
Mohit Anchlia wrote: On Tue, Aug 9, 2011 at 1:30 AM, Pid p...@pidster.com wrote: On 08/08/2011 20:36, Mohit Anchlia wrote: I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST

Re: URL Rewrite

2010-09-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michel, On 9/5/2010 6:23 PM, michel wrote: - Original Message - From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 12:07 PM Subject: Re: URL Rewrite

Re: URL Rewrite

2010-09-06 Thread Pid
On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use relative links, period. Sorry, but I don't understand why. In most cases relative links are great, simply because they are 'self-updating' when the

Re: URL Rewrite

2010-09-06 Thread michel
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Monday, September 06, 2010 5:02 AM Subject: Re: URL Rewrite On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh

Re: URL Rewrite

2010-09-06 Thread Wesley Acheson
On Mon, Sep 6, 2010 at 11:02 AM, Pid p...@pidster.com wrote: On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use relative links, period. Sorry, but I don't understand why. In most cases relative

Re: URL Rewrite

2010-09-06 Thread Subrat Kumar Pattnaik
I can not login to Apache Tomcat 7 managerplease tell me the configuration On Mon, Sep 6, 2010 at 2:32 PM, Pid p...@pidster.com wrote: On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use

Re: URL Rewrite

2010-09-06 Thread Wesley Acheson
Please send a new email to the list rather than reply to an unrelated topic. On Mon, Sep 6, 2010 at 12:09 PM, Subrat Kumar Pattnaik patnaik.sub...@gmail.com wrote: I can not login to Apache Tomcat 7 managerplease tell me the configuration On Mon, Sep 6, 2010 at 2:32 PM, Pid

Re: URL Rewrite

2010-09-06 Thread Hassan Schroeder
On Mon, Sep 6, 2010 at 3:05 AM, Wesley Acheson wesley.ache...@gmail.com wrote: Are we talking about absolute links like http://example.com/test; or /test (as opposed to test). /test, i.e. starts with a slash representing the app root -- Hassan Schroeder

Re: URL Rewrite

2010-09-06 Thread Pid
On 06/09/2010 11:05, Wesley Acheson wrote: On Mon, Sep 6, 2010 at 11:02 AM, Pid p...@pidster.com wrote: On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use relative links, period. Sorry, but I don't

Re: URL Rewrite

2010-09-06 Thread michel
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Monday, September 06, 2010 11:54 AM Subject: Re: URL Rewrite On 06/09/2010 11:05, Wesley Acheson wrote: On Mon, Sep 6, 2010 at 11:02 AM, Pid p...@pidster.com wrote: On 05/09/2010 23

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: Konstantin Kolinko knst.koli...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, September 04, 2010 11:06 AM Subject: Re: URL Rewrite 2010/9/4 michel compu...@videotron.ca: - Original Message - From: Ognjen Blagojevic

Re: URL Rewrite

2010-09-05 Thread André Warnier
Michel, michel wrote: ... Konstantin, I fixed the problem! The problem was in the links in the HTML code. If I do a redirect, then the URL in http: shows the true URL, and the links in the page were using it for building the reklative address. Example: with http://www.smith.com html

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 10:25 AM Subject: Re: URL Rewrite Michel, michel wrote: ... Konstantin, I fixed the problem! The problem was in the links in the HTML code

Re: URL Rewrite

2010-09-05 Thread André Warnier
michel wrote: ... André, I am not sure that I understand but I think that I do. In this case, I believe that HTML does interpret links in a natural way. Normally, the HTML picks up the base href from the toolbar. In the case of a forward with a clean URL in the toolbar, we already have an

Re: URL Rewrite

2010-09-05 Thread Hassan Schroeder
On Sun, Sep 5, 2010 at 8:38 AM, André Warnier a...@ice-sa.com wrote:  The right solution would be to make sure that all the relative links in your pages, when they are interpreted by the browser and requested from the server, are also being caught by the rewriting mechanism on the server, and

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 12:07 PM Subject: Re: URL Rewrite On Sun, Sep 5, 2010 at 8:38 AM, André Warnier a...@ice-sa.com wrote: The right solution would

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 11:38 AM Subject: Re: URL Rewrite michel wrote: ... André, I am not sure that I understand but I think that I do. In this case, I believe

Re: URL Rewrite

2010-09-05 Thread Hassan Schroeder
On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use relative links, period. Sorry, but I don't understand why. In most cases relative links are great, simply because they are 'self-updating' when the page gets moved. ? Obviously not. If you move

Re: URL Rewrite

2010-09-04 Thread Konstantin Kolinko
2010/9/4 michel compu...@videotron.ca: - Original Message - From: Ognjen Blagojevic ognjen.d.blagoje...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 03, 2010 6:42 AM Subject: Re: URL Rewrite On 3.9.2010 12:02, michel wrote: I have been using

Re: URL Rewrite

2010-09-03 Thread Pid
On 03/09/2010 11:02, michel wrote: I have been using the tuckey urlrewrite with some results, in that if I want to have an incoming URL coming in as gallery/pic20 gets changed to gallery.jsp?pic=20 But the tool bar URL gets displayed as gallery.jsp?pic=20 and I want to display

Re: URL Rewrite

2010-09-03 Thread Ognjen Blagojevic
On 3.9.2010 12:02, michel wrote: I have been using the tuckey urlrewrite with some results, in that if I want to have an incoming URL coming in as gallery/pic20 gets changed to gallery.jsp?pic=20 But the tool bar URL gets displayed as gallery.jsp?pic=20 and I want to display gallery/pic20

Re: URL Rewrite

2010-09-03 Thread michel
- Original Message - From: Ognjen Blagojevic ognjen.d.blagoje...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 03, 2010 6:42 AM Subject: Re: URL Rewrite On 3.9.2010 12:02, michel wrote: I have been using the tuckey urlrewrite with some results

Re: URL Rewrite

2010-09-03 Thread michel
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 03, 2010 6:29 AM Subject: Re: URL Rewrite On 03/09/2010 11:02, michel wrote: I have been using the tuckey urlrewrite with some results, in that if I want to have

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a http://lmgtfy.com/?q=tomcat+url+rewrite Is URL rewrite module inbuilt or is there something that need to get loaded -- Hassan

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 7:04 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 9/1/2010 9:10 PM, Mohit Anchlia wrote: Tomcat 6: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a Sure:

Re: URL rewrite

2010-09-02 Thread michel
- Original Message - From: Mohit Anchlia mohitanch...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 02, 2010 12:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: Is there a way

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Thu, Sep 2, 2010 at 9:35 AM, michel compu...@videotron.ca wrote: - Original Message - From: Mohit Anchlia mohitanch...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 02, 2010 12:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM

RE: URL rewrite

2010-09-02 Thread Maximilian Stocker
From: Mohit Anchlia [mohitanch...@gmail.com] Sent: September 2, 2010 12:26 PM To: Tomcat Users List Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 7:04 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 9/1/2010 9:10

RE: URL rewrite

2010-09-02 Thread Maximilian Stocker
? From: Mohit Anchlia [mohitanch...@gmail.com] Sent: September 2, 2010 12:49 PM To: Tomcat Users List Subject: Re: URL rewrite On Thu, Sep 2, 2010 at 9:35 AM, michel compu...@videotron.ca wrote: - Original Message - From: Mohit Anchlia mohitanch...@gmail.com

Re: URL rewrite

2010-09-02 Thread Felix Schumacher
:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a http://lmgtfy.com/?q=tomcat+url+rewrite Is URL rewrite module inbuilt

Re: URL rewrite

2010-09-01 Thread Hassan Schroeder
Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a http://lmgtfy.com/?q=tomcat+url+rewrite -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To

Re: URL rewrite

2010-09-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 9/1/2010 9:10 PM, Mohit Anchlia wrote: Tomcat 6: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a Sure: CTRL-L, END, LEFT, 'b', then '/' Voile! - -chris -BEGIN PGP SIGNATURE- Version:

Re: Url rewrite

2008-09-30 Thread Ken Bowen
Something like the following might be helpful for your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ filter-class !-- init-param param-namelogLevel/param-name

Re: Url rewrite

2008-09-30 Thread Mohit Anchlia
I think I don't really understand how it works. So if my request abc.com/a doesn't even get to B.war i.e abc.com/b then how would having filters in web.xml help. Also, is adding just rule not enough? Why do we also need to add a filter. On Tue, Sep 30, 2008 at 10:48 AM, Ken Bowen [EMAIL

Re: Url rewrite

2008-09-30 Thread Ken Bowen
Below... On Sep 30, 2008, at 1:58 PM, Mohit Anchlia wrote: I think I don't really understand how it works. So if my request abc.com/a doesn't even get to B.war i.e abc.com/b then how would having filters in web.xml help. request abc.com/a doesn't get to B.war BECAUSE it is changed to

Re: Url rewrite

2008-09-30 Thread Mohit Anchlia
So does it mean even if the URL is abc/a it will still be routed to the abc/b servlet even though Urlrewrite.xml rule is inside B.war. I am confused in the sense that for tomcat to know if it has to route that request to abc/b wouldn't the URLrewrite need to occur somewhere outside of B.war? On

Re: Url rewrite

2008-09-30 Thread Ken Bowen
Yes. I assumed you were putting the rewrite in A.war. On Sep 30, 2008, at 3:41 PM, Mohit Anchlia wrote: So does it mean even if the URL is abc/a it will still be routed to the abc/b servlet even though Urlrewrite.xml rule is inside B.war. I am confused in the sense that for tomcat to know if

Re: Url rewrite

2008-09-30 Thread Mark Thomas
Ken Bowen wrote: Yes. I assumed you were putting the rewrite in A.war. Since A.war probably doesn't exist, you should put it in ROOT.war which handles all requests that don't match any other context. Mark - To start a new

Re: Url rewrite

2008-09-30 Thread Mohit Anchlia
But if I do it in ROOT.war then how would it be forwarded to B.war? On Tue, Sep 30, 2008 at 1:52 PM, Mark Thomas [EMAIL PROTECTED] wrote: Ken Bowen wrote: Yes. I assumed you were putting the rewrite in A.war. Since A.war probably doesn't exist, you should put it in ROOT.war which handles

Re: Url rewrite

2008-09-30 Thread Mark Thomas
Mohit Anchlia wrote: But if I do it in ROOT.war then how would it be forwarded to B.war? Can you make B.war ROOT.war? If not, this isn't going to work and you are going to have to use a redirect. Mark On Tue, Sep 30, 2008 at 1:52 PM, Mark Thomas [EMAIL PROTECTED] wrote: Ken Bowen wrote:

RE: URL rewrite!!!

2008-08-15 Thread Caldarale, Charles R
-Original Message- From: Shahar Cohen [mailto:[EMAIL PROTECTED] Subject: URL rewrite!!! Can anyone tell me how can I configure URL rewrite in tomcat 5.5. Try this: http://tuckey.org/urlrewrite/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY