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 : > 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 docum

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 b

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-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

Re: URL rewrite in tomcat 7

2015-02-07 Thread Ben Stringer
> On 7 Feb 2015, at 10:53 pm, Baran Topal 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 URL. > > How

Re: URL rewrite

2011-08-09 Thread André Warnier
Mohit Anchlia wrote: On Tue, Aug 9, 2011 at 1:30 AM, Pid 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 print

Re: URL rewrite

2011-08-09 Thread Konstantin Kolinko
2011/8/9 Mohit Anchlia : >> 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 not a part of Tomca

Re: URL rewrite

2011-08-09 Thread Mohit Anchlia
On Tue, Aug 9, 2011 at 1:30 AM, Pid 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 head

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

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" > > To: "Tomcat Users List" > Sent: Sunday, September 05, 2010 12:07 PM > Subject: Re: URL Rewrite > >

Re: URL Rewrite

2010-09-06 Thread michel
- Original Message - From: "Pid" To: "Tomcat Users List" 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 wrote: On 05/09/2010 23:40, Hassan Schroeder wrote:

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 wrote: > >> On 05/09/2010 23:40, Hassan Schroeder wrote: >>> On Sun, Sep 5, 2010 at 3:23 PM, michel wrote: >>> Or, uh, just don't *ever* use relative links, period. >>> Sorry, but I don't understand why.

Re: URL Rewrite

2010-09-06 Thread Hassan Schroeder
On Mon, Sep 6, 2010 at 3:05 AM, Wesley Acheson 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 hassan.schroe...@gmail.com

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 wr

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 wrote: > On 05/09/2010 23:40, Hassan Schroeder wrote: > > On Sun, Sep 5, 2010 at 3:23 PM, michel wrote: > > > >> Or, uh, just don't *ever* use relative links, period. > > > >> So

Re: URL Rewrite

2010-09-06 Thread Wesley Acheson
On Mon, Sep 6, 2010 at 11:02 AM, Pid wrote: > On 05/09/2010 23:40, Hassan Schroeder wrote: > > On Sun, Sep 5, 2010 at 3:23 PM, michel 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, > >> s

Re: URL Rewrite

2010-09-06 Thread michel
- Original Message - From: "Pid" To: "Tomcat Users List" 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 wrote: Or, uh, just don't *ever* use relati

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 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 mo

Re: URL Rewrite

2010-09-05 Thread Hassan Schroeder
On Sun, Sep 5, 2010 at 3:23 PM, michel 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 a page with relativ

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: "André Warnier" To: "Tomcat Users List" 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 that HTML does

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: "Hassan Schroeder" To: "Tomcat Users List" Sent: Sunday, September 05, 2010 12:07 PM Subject: Re: URL Rewrite On Sun, Sep 5, 2010 at 8:38 AM, André Warnier wrote: The right solution would be to make sure that all the relative links i

Re: URL Rewrite

2010-09-05 Thread Hassan Schroeder
On Sun, Sep 5, 2010 at 8:38 AM, André Warnier 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 > properly redi

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 michel
- Original Message - From: "André Warnier" To: "Tomcat Users List" 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. If I do a redir

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 cod

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: "Konstantin Kolinko" To: "Tomcat Users List" Sent: Saturday, September 04, 2010 11:06 AM Subject: Re: URL Rewrite 2010/9/4 michel : - Original Message - From: "Ognjen Blagojevic" To: "Tomcat Users List"

Re: URL Rewrite

2010-09-04 Thread Konstantin Kolinko
2010/9/4 michel : > - Original Message - From: "Ognjen Blagojevic" > > To: "Tomcat Users List" > Sent: Friday, September 03, 2010 6:42 AM > Subject: Re: URL Rewrite > > >> On 3.9.2010 12:02, michel wrote: >>> >>> I have

Re: URL Rewrite

2010-09-03 Thread michel
- Original Message - From: "Pid" To: "Tomcat Users List" 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 an incoming URL co

Re: URL Rewrite

2010-09-03 Thread michel
- Original Message - From: "Ognjen Blagojevic" To: "Tomcat Users List" 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, in that if I want to have an in

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 J

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-02 Thread Felix Schumacher
Am Donnerstag, den 02.09.2010, 09:49 -0700 schrieb Mohit Anchlia: > On Thu, Sep 2, 2010 at 9:35 AM, michel wrote: > > > > - Original Message - From: "Mohit Anchlia" > > To: "Tomcat Users List" > > Sent: Thursday, September 02, 2010 12:25

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 wrote: > > - Original Message - From: "Mohit Anchlia" > To: "To

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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 9/1/2010 9:10

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Thu, Sep 2, 2010 at 9:35 AM, michel wrote: > > - Original Message - From: "Mohit Anchlia" > To: "Tomcat Users List" > Sent: Thursday, September 02, 2010 12:25 PM > Subject: Re: URL rewrite > > >> On Wed, Sep 1, 2010 at 6:21 PM, Hassan S

Re: URL rewrite

2010-09-02 Thread michel
- Original Message - From: "Mohit Anchlia" To: "Tomcat Users List" Sent: Thursday, September 02, 2010 12:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder wrote: Is there a way to change the URL for eg: http://abc.com/a to http:

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 7:04 PM, Christopher Schultz 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: > > C

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder 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 Schroeder -

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- V

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 uns

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 wro

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 > han

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 to

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 i

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 Tu

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 abc.

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 not enough? Why do we also need to add a filter. On Tue, Sep 30, 2008 at 10:48 AM, Ken Bowen <[EMAIL PROTECTED]>

Re: Url rewrite

2008-09-30 Thread Ken Bowen
Something like the following might be helpful for your web.xml: UrlRewriteFilter org.tuckey.web.filters.urlrewrite.UrlRewriteFilterfilter-class> UrlRewriteFilter /* FORWARD REQUEST If you uncomment the "init-param" items above, youll get debug output. And

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