<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-18160</id>
	<title>Nabble - UrlRewrite</title>
	<updated>2009-12-10T06:38:31Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/UrlRewrite-f18160.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/UrlRewrite-f18160.html" />
	<subtitle type="html">Group for java url rewrite filter.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26734300</id>
	<title>Global URL Rewrite</title>
	<published>2009-12-10T06:38:31Z</published>
	<updated>2009-12-10T06:38:31Z</updated>
	<author>
		<name>Vinicius Carvalho-3</name>
	</author>
	<content type="html">Hello there! Is it possible to configure a global rewrite for my
&lt;br&gt;tomcat server? Putting the filter declaration on CATALINA_BASE/conf/
&lt;br&gt;web.xml, the lib on CATALINA_HOME/shared/lib and urlrewrite.xml on
&lt;br&gt;CATALINA_BASE/conf is not working.
&lt;br&gt;&lt;br&gt;What I need is to have a url that points to a context be redirected to
&lt;br&gt;a different context. Is it possible?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26734300&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26734300&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Global-URL-Rewrite-tp26734300p26734300.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26697259</id>
	<title>Re: Multiple urlrewrite.xml files</title>
	<published>2009-12-08T09:13:01Z</published>
	<updated>2009-12-08T09:13:01Z</updated>
	<author>
		<name>Avlesh Singh</name>
	</author>
	<content type="html">&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;Is it possible to have a urlrewrite.xml file for all stores at the Web-INF level, and another urlrewrite.xml in sub directories?&lt;br&gt;
&lt;/blockquote&gt;
Nope.&lt;br&gt;&lt;br&gt;Cheers&lt;br&gt;Avlesh&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Dec 8, 2009 at 10:29 PM, Danjojo &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697259&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dlcacuff@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Is it possible to have a urlrewrite.xml file for all stores at the Web-&lt;br&gt;
INF level, and another urlrewrite.xml in sub directories?&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697259&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697259&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;UrlRewrite&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697259&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697259&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multiple-urlrewrite.xml-files-tp26697038p26697259.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26697038</id>
	<title>Multiple urlrewrite.xml files</title>
	<published>2009-12-08T08:59:09Z</published>
	<updated>2009-12-08T08:59:09Z</updated>
	<author>
		<name>Danjojo</name>
	</author>
	<content type="html">Is it possible to have a urlrewrite.xml file for all stores at the Web-
&lt;br&gt;INF level, and another urlrewrite.xml in sub directories?
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697038&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697038&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multiple-urlrewrite.xml-files-tp26697038p26697038.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26698369</id>
	<title>URL rewrite of images/hrefs - Not working on the context?</title>
	<published>2009-12-08T08:34:55Z</published>
	<updated>2009-12-08T08:34:55Z</updated>
	<author>
		<name>Salman Rizvi</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;&lt;br&gt;I am using tuckey 2.6 -
&lt;br&gt;&lt;br&gt;I have the following images and hrefs included in my file:
&lt;br&gt;&lt;br&gt;So the page url is: &lt;a href=&quot;http://localhost:7001/project/mc/aboutus/default.jsf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:7001/project/mc/aboutus/default.jsf&lt;/a&gt;&lt;br&gt;&lt;br&gt;With the context root being: project
&lt;br&gt;&lt;br&gt;These are some images and hrefs included:
&lt;br&gt;&lt;br&gt;&amp;lt;img src=&amp;quot;/cpo/mr/assets/images/banners/en/literacy2_C_en.jpg&amp;quot; ... &amp;nbsp;/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;a href=&amp;quot;/cpo/mc/aboutus/community/olympics/index.jsf&amp;quot; ... /&amp;gt;
&lt;br&gt;&lt;br&gt;I want to flip the context in these urls to redirect to the page's
&lt;br&gt;context root: project
&lt;br&gt;&lt;br&gt;&lt;br&gt;So I've tried various configurations but cannot acheive success here
&lt;br&gt;is some of what I have used:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;/cpo/(.*)&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;to type=&amp;quot;redirect&amp;quot;&amp;gt;%{context-path}/$1&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/rule&amp;gt;
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;^/cpo/(.*)&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;to type=&amp;quot;redirect&amp;quot;&amp;gt;%{context-path}/$1&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/rule&amp;gt;
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;/cpo/mr/(.*)&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;to type=&amp;quot;redirect&amp;quot;&amp;gt;%{context-path}/mr/$1&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;/cpo/mc/(.*)&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;to type=&amp;quot;redirect&amp;quot;&amp;gt;%{context-path}/mc/$1&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/rule&amp;gt;
&lt;br&gt;&lt;br&gt;Does anyone know how I can acheive this?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26698369&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26698369&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URL-rewrite-of-images-hrefs---Not-working-on-the-context--tp26698369p26698369.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675543</id>
	<title>Re: Please add ServletPath to &lt;condition&gt;</title>
	<published>2009-12-07T02:53:15Z</published>
	<updated>2009-12-07T02:53:15Z</updated>
	<author>
		<name>Avlesh Singh</name>
	</author>
	<content type="html">&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;A request of &lt;a href=&quot;http://localhost:8080/context/path/something.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/context/path/something.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I want to check if &amp;quot;/path/something.html&amp;quot; is equal to a list of known&lt;br&gt;
paths, if so, it&amp;#39;s excluded (so it&amp;#39;s a negative condition).&lt;br&gt;
Otherwise resume with the rewrite. Actually my wildcard would be &amp;quot;/&lt;br&gt;
path**&amp;quot; but a negative one (because it&amp;#39;s exclusion, not inclusion).&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;Why not use the &amp;quot;request-uri&amp;quot; based conditions. For exclusions you can use operator=&amp;quot;notequal&amp;quot;. Moreover, multiple conditions can be OR&amp;#39;ed or AND&amp;#39;ed with each other. Default is &amp;quot;AND&amp;quot;, you can set next=&amp;quot;or&amp;quot; for each &amp;lt;condition&amp;gt; in your case.&lt;br&gt;
&lt;br&gt;Cheers&lt;br&gt;Avlesh&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Dec 7, 2009 at 4:06 PM, Hendy Irawan &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675543&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hendy@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
On Nov 29, 11:37 am, Avlesh Singh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675543&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;avl...@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; I&amp;#39;m having a hard time creating exclude conditions for a rule. Please add&lt;br&gt;
&amp;gt; &amp;gt; getServletPath() as one of the condition types.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Servlet path can be added but I am not too sure how much of help it would be&lt;br&gt;
&amp;gt; for struts-like MVC implementations which are based on front controller&lt;br&gt;
&amp;gt; design pattern; getServletPath in such cases would always return a single&lt;br&gt;
&amp;gt; value.&lt;br&gt;
&amp;gt; If you have a specific scenario, you might want to post the problem here.&lt;br&gt;
&amp;gt; Maybe there is an alternative solution.&lt;br&gt;
&lt;br&gt;
A request of &lt;a href=&quot;http://localhost:8080/context/path/something.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/context/path/something.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I want to check if &amp;quot;/path/something.html&amp;quot; is equal to a list of known&lt;br&gt;
paths, if so, it&amp;#39;s excluded (so it&amp;#39;s a negative condition).&lt;br&gt;
Otherwise resume with the rewrite. Actually my wildcard would be &amp;quot;/&lt;br&gt;
path**&amp;quot; but a negative one (because it&amp;#39;s exclusion, not inclusion).&lt;br&gt;
&lt;br&gt;
How do I get this &amp;quot;/path/something.html&amp;quot; ?&lt;br&gt;
&lt;br&gt;
&amp;gt; Also, is it possible to check for existence of file in the requested URI ?&amp;gt; i.e. like mod_rewrite&amp;#39;s -f , -e, -d, etc ?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; There&amp;#39;s already a ticket to support -f, -d flags in mod_rewrite. The issue&lt;br&gt;
&amp;gt; is here -&lt;a href=&quot;http://code.google.com/p/urlrewritefilter/issues/detail?id=49&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/urlrewritefilter/issues/detail?id=49&lt;/a&gt;.&lt;br&gt;
&amp;gt; Interested in writing a patch?&lt;br&gt;
&lt;br&gt;
Thanks Avlesh for the encouragement. :-)&lt;br&gt;
&lt;br&gt;
Hendy&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675543&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675543&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;UrlRewrite&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675543&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675543&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Please-add-ServletPath-to-%3Ccondition%3E-tp26557342p26675543.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675382</id>
	<title>Re: Please add ServletPath to &lt;condition&gt;</title>
	<published>2009-12-07T02:36:15Z</published>
	<updated>2009-12-07T02:36:15Z</updated>
	<author>
		<name>Hendy Irawan</name>
	</author>
	<content type="html">On Nov 29, 11:37 am, Avlesh Singh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675382&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;avl...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; I'm having a hard time creating exclude conditions for a rule. Please add
&lt;br&gt;&amp;gt; &amp;gt; getServletPath() as one of the condition types.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Servlet path can be added but I am not too sure how much of help it would be
&lt;br&gt;&amp;gt; for struts-like MVC implementations which are based on front controller
&lt;br&gt;&amp;gt; design pattern; getServletPath in such cases would always return a single
&lt;br&gt;&amp;gt; value.
&lt;br&gt;&amp;gt; If you have a specific scenario, you might want to post the problem here.
&lt;br&gt;&amp;gt; Maybe there is an alternative solution.
&lt;br&gt;&lt;br&gt;A request of &lt;a href=&quot;http://localhost:8080/context/path/something.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/context/path/something.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;I want to check if &amp;quot;/path/something.html&amp;quot; is equal to a list of known
&lt;br&gt;paths, if so, it's excluded (so it's a negative condition).
&lt;br&gt;Otherwise resume with the rewrite. Actually my wildcard would be &amp;quot;/
&lt;br&gt;path**&amp;quot; but a negative one (because it's exclusion, not inclusion).
&lt;br&gt;&lt;br&gt;How do I get this &amp;quot;/path/something.html&amp;quot; ?
&lt;br&gt;&lt;br&gt;&amp;gt; Also, is it possible to check for existence of file in the requested URI ?&amp;gt; i.e. like mod_rewrite's -f , -e, -d, etc ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There's already a ticket to support -f, -d flags in mod_rewrite. The issue
&lt;br&gt;&amp;gt; is here -&lt;a href=&quot;http://code.google.com/p/urlrewritefilter/issues/detail?id=49&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/urlrewritefilter/issues/detail?id=49&lt;/a&gt;.
&lt;br&gt;&amp;gt; Interested in writing a patch?
&lt;br&gt;&lt;br&gt;Thanks Avlesh for the encouragement. :-)
&lt;br&gt;&lt;br&gt;Hendy
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675382&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675382&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Please-add-ServletPath-to-%3Ccondition%3E-tp26557342p26675382.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26654290</id>
	<title>Re: [Patch] Additional requested session id conditions</title>
	<published>2009-12-05T02:01:59Z</published>
	<updated>2009-12-05T02:01:59Z</updated>
	<author>
		<name>Avlesh Singh</name>
	</author>
	<content type="html">Your patch has been acted upon - &lt;a href=&quot;http://code.google.com/p/urlrewritefilter/issues/detail?id=57#c1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/urlrewritefilter/issues/detail?id=57#c1&lt;/a&gt;&lt;br&gt;&lt;br&gt;Cheers&lt;br&gt;Avlesh&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Sat, Dec 5, 2009 at 2:53 PM, David Erickson &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654290&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;halcyon1981@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;On Fri, Dec 4, 2009 at 1:38 AM, Avlesh Singh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654290&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;avlesh@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt; This looks quite useful. I&amp;#39;m not an uwf developer but I think patches&lt;br&gt;
&amp;gt;&amp;gt; are usually tracked through the google code site&lt;br&gt;
&amp;gt;&amp;gt; (&lt;a href=&quot;http://urlrewritefilter.googlecode.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://urlrewritefilter.googlecode.com&lt;/a&gt;). Perhaps you could also&lt;br&gt;
&amp;gt;&amp;gt; create an Issue/enhancement there?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Yes, you are right. This is the only way for patches to make their way into&lt;br&gt;
&amp;gt; the code base.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Added an issue 57, I couldn&amp;#39;t see a way for me to classify it as an&lt;br&gt;
enhancement, I assume that is something only project admins can do.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;David&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654290&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654290&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;UrlRewrite&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654290&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654290&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--Additional-requested-session-id-conditions-tp26622695p26654290.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26654282</id>
	<title>Re: Issue 57 in urlrewritefilter: Additional requested session id  conditions</title>
	<published>2009-12-05T02:00:31Z</published>
	<updated>2009-12-05T02:00:31Z</updated>
	<author>
		<name>urlrewritefilter</name>
	</author>
	<content type="html">Updates:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status: Accepted
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: avlesh
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Labels: -Type-Defect Type-Enhancement OpSys-All
&lt;br&gt;&lt;br&gt;Comment #1 on issue 57 by avlesh: Additional requested session id conditions
&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/urlrewritefilter/issues/detail?id=57&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/urlrewritefilter/issues/detail?id=57&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks for the patch David. The case in point seems to be valid. I have &amp;nbsp;
&lt;br&gt;reviewed the
&lt;br&gt;patch, fixed some typos and code style. I have attached the reviewed &amp;nbsp;
&lt;br&gt;version too. If
&lt;br&gt;there are no objections, I plan to commit shortly.
&lt;br&gt;&lt;br&gt;Attachments:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URF-57.patch &amp;nbsp;12.2 KB
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;You received this message because you are listed in the owner
&lt;br&gt;or CC fields of this issue, or because you starred this issue.
&lt;br&gt;You may adjust your issue notification preferences at:
&lt;br&gt;&lt;a href=&quot;http://code.google.com/hosting/settings&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/hosting/settings&lt;/a&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654282&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654282&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Issue-57-in-urlrewritefilter%3A-Additional-requested-session-id--conditions-tp26654031p26654282.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26654044</id>
	<title>Re: [Patch] Additional requested session id conditions</title>
	<published>2009-12-05T01:23:47Z</published>
	<updated>2009-12-05T01:23:47Z</updated>
	<author>
		<name>David Erickson-5</name>
	</author>
	<content type="html">On Fri, Dec 4, 2009 at 1:38 AM, Avlesh Singh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654044&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;avlesh@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; This looks quite useful. I'm not an uwf developer but I think patches
&lt;br&gt;&amp;gt;&amp;gt; are usually tracked through the google code site
&lt;br&gt;&amp;gt;&amp;gt; (&lt;a href=&quot;http://urlrewritefilter.googlecode.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://urlrewritefilter.googlecode.com&lt;/a&gt;). Perhaps you could also
&lt;br&gt;&amp;gt;&amp;gt; create an Issue/enhancement there?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes, you are right. This is the only way for patches to make their way into
&lt;br&gt;&amp;gt; the code base.
&lt;br&gt;&lt;br&gt;Added an issue 57, I couldn't see a way for me to classify it as an
&lt;br&gt;enhancement, I assume that is something only project admins can do.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;David
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654044&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654044&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--Additional-requested-session-id-conditions-tp26622695p26654044.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26654031</id>
	<title>Issue 57 in urlrewritefilter: Additional requested session id  conditions</title>
	<published>2009-12-05T01:22:16Z</published>
	<updated>2009-12-05T01:22:16Z</updated>
	<author>
		<name>urlrewritefilter</name>
	</author>
	<content type="html">Status: New
&lt;br&gt;Owner: ----
&lt;br&gt;Labels: Type-Defect Priority-Medium
&lt;br&gt;&lt;br&gt;New issue 57 by halcyon1981: Additional requested session id conditions
&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/urlrewritefilter/issues/detail?id=57&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/urlrewritefilter/issues/detail?id=57&lt;/a&gt;&lt;br&gt;&lt;br&gt;Firstly thanks for developing such a useful filter, it has saved us a
&lt;br&gt;lot of hassle. Second, I have included a patch with tests and
&lt;br&gt;documentation that adds the following condition checks:
&lt;br&gt;&lt;br&gt;-requested-session-id-from-cookie
&lt;br&gt;-requested-session-id-from-url
&lt;br&gt;-requested-session-id-valid
&lt;br&gt;&lt;br&gt;They check the corresponding methods on the request object. Our use
&lt;br&gt;case is that Google has indexed URLs on our website containing
&lt;br&gt;jsessionid, we would like to get rid of them immediately, thus we need
&lt;br&gt;their indexer to try and crawl them, and be permanently redirected to
&lt;br&gt;the corresponding URL without jsessionid in it. The problem is that
&lt;br&gt;Tomcat 5.5 hides the jsessionid from the getRequestURI and
&lt;br&gt;getRequestURL methods on the request object, thus we cannot detect its
&lt;br&gt;presence via a simple regex. &amp;nbsp;Thus the only way to detect jsessionid
&lt;br&gt;in the URL is to check if isRequestedSessionIdFromCookie is true, then
&lt;br&gt;do a permanent redirect to the presented URL, which will automatically
&lt;br&gt;clear jsessionid because Tomcat hid it from us. &amp;nbsp;An example is
&lt;br&gt;provided in the documentation.
&lt;br&gt;&lt;br&gt;Hope this is useful to others!
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;David Erickson
&lt;br&gt;&lt;br&gt;Attachments:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestedSessionIdConditions.patch &amp;nbsp;12.0 KB
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;You received this message because you are listed in the owner
&lt;br&gt;or CC fields of this issue, or because you starred this issue.
&lt;br&gt;You may adjust your issue notification preferences at:
&lt;br&gt;&lt;a href=&quot;http://code.google.com/hosting/settings&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/hosting/settings&lt;/a&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654031&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654031&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Issue-57-in-urlrewritefilter%3A-Additional-requested-session-id--conditions-tp26654031p26654031.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26647998</id>
	<title>Re: UrlRewrite not working well with cometd / Bayeux continuation</title>
	<published>2009-12-04T11:34:10Z</published>
	<updated>2009-12-04T11:34:10Z</updated>
	<author>
		<name>Hendy Irawan</name>
	</author>
	<content type="html">Thanks Avlesh, I'll try it!
&lt;br&gt;&lt;br&gt;On Dec 5, 12:04 am, Avlesh Singh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647998&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;avl...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; It seems that UrlRewrite interferes with filters using continuation or
&lt;br&gt;&amp;gt; &amp;gt; perhaps with NIO.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nope. The URF &amp;quot;forwards&amp;quot; a request once a URL for a matching rule is
&lt;br&gt;&amp;gt; &amp;quot;re-written&amp;quot;. This essentially means that the request is dispatched to a new
&lt;br&gt;&amp;gt; location. Web application filters, typically, are configured to be listening
&lt;br&gt;&amp;gt; only on request's and NOT forwards.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to use cometd servlet, that requires ContinuationFilter under&amp;gt; Tomcat 6.0.20. With urlrewrite filter enabled, it sometimes give errors.
&lt;br&gt;&amp;gt; &amp;gt; Disabling urlrewrite filter (or using it for different url-pattern) solves
&lt;br&gt;&amp;gt; &amp;gt; the problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In light of what I said above, if you add the underneath to your
&lt;br&gt;&amp;gt; ContinuationFilter's filter-mapping in web.xml, it would be called even when
&lt;br&gt;&amp;gt; the request is forwarded via a dispatcher.
&lt;br&gt;&amp;gt; &amp;lt;dispatcher&amp;gt;REQUEST&amp;lt;/dispatcher&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;dispatcher&amp;gt;FORWARD&amp;lt;/dispatcher&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Let me know, if this resolves the issue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt; Avlesh
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647998&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647998&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug---UrlRewrite-not-working-well-with-cometd---Bayeux-continuation-tp26641512p26647998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26645721</id>
	<title>Re: [bug?] UrlRewrite not working well with cometd / Bayeux  continuation</title>
	<published>2009-12-04T09:04:55Z</published>
	<updated>2009-12-04T09:04:55Z</updated>
	<author>
		<name>Avlesh Singh</name>
	</author>
	<content type="html">&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;It seems that UrlRewrite interferes with filters using continuation or perhaps with NIO.&lt;br&gt;&lt;/blockquote&gt;

Nope. The URF &amp;quot;forwards&amp;quot; a request once a URL for a matching rule is &amp;quot;re-written&amp;quot;. This essentially means that the request is dispatched to a new location. Web application filters, typically, are configured to be listening only on request&amp;#39;s and NOT forwards. &lt;br&gt;
&lt;br&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;
I&amp;#39;m trying to use cometd servlet, that requires ContinuationFilter under Tomcat 6.0.20. With urlrewrite filter enabled, it sometimes give errors. Disabling urlrewrite filter (or using it for different url-pattern) solves the problem.&lt;br&gt;
&lt;/blockquote&gt;
In light of what I said above, if you add the underneath to your ContinuationFilter&amp;#39;s filter-mapping in web.xml, it would be called even when the request is forwarded via a dispatcher.&lt;br&gt;&amp;lt;dispatcher&amp;gt;REQUEST&amp;lt;/dispatcher&amp;gt;  &lt;br&gt;
&amp;lt;dispatcher&amp;gt;FORWARD&amp;lt;/dispatcher&amp;gt;&lt;br&gt;&lt;br&gt;Let me know, if this resolves the issue.&lt;br&gt;&lt;br&gt;Cheers&lt;br&gt;Avlesh&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 4, 2009 at 5:24 PM, Hendy Irawan &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26645721&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hendy@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi,&lt;br&gt;
&lt;br&gt;
It seems that UrlRewrite interferes with filters using continuation or&lt;br&gt;
perhaps with NIO.&lt;br&gt;
&lt;br&gt;
I&amp;#39;m trying to use cometd servlet, that requires ContinuationFilter&lt;br&gt;
under Tomcat 6.0.20. With urlrewrite filter enabled, it sometimes give&lt;br&gt;
errors. Disabling urlrewrite filter (or using it for different url-&lt;br&gt;
pattern) solves the problem.&lt;br&gt;
&lt;br&gt;
I also had other filter, Spring Security, but it doesn&amp;#39;t seem to&lt;br&gt;
interfere.&lt;br&gt;
&lt;br&gt;
Original thread in cometd-users mailing list is:&lt;br&gt;
&lt;a href=&quot;http://groups.google.com/group/cometd-users/browse_thread/thread/b2e749f47bbe360b&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cometd-users/browse_thread/thread/b2e749f47bbe360b&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Thank you.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26645721&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26645721&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;UrlRewrite&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26645721&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26645721&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug---UrlRewrite-not-working-well-with-cometd---Bayeux-continuation-tp26641512p26645721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26648104</id>
	<title>URLRewrite and OpenCMS</title>
	<published>2009-12-04T08:30:59Z</published>
	<updated>2009-12-04T08:30:59Z</updated>
	<author>
		<name>Luis-3</name>
	</author>
	<content type="html">We need to use short URLs for the cover of books indicating the
&lt;br&gt;location of accompanying material (files, data sheets ...)
&lt;br&gt;&lt;br&gt;We have OpenCMS as Content Manager. When we use URLRewrite, CMS
&lt;br&gt;disables editing advanced properties of the contents.
&lt;br&gt;&lt;br&gt;I look for that issue in the group but I have not found anything.
&lt;br&gt;&lt;br&gt;Is there someone who has had this problem? How did you solved?
&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;Luis
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648104&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648104&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URLRewrite-and-OpenCMS-tp26648104p26648104.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26644144</id>
	<title>Re: Get the URL of the browser</title>
	<published>2009-12-04T07:27:37Z</published>
	<updated>2009-12-04T07:27:37Z</updated>
	<author>
		<name>lusitano</name>
	</author>
	<content type="html">&lt;div&gt;Hi Wim,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thank you very much!&lt;/div&gt;
&lt;div&gt;This method is ok for my problem!&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Best regards !&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;br&gt; &lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/4 Wim De Smet &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644144&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kromagg@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote style=&quot;BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex&quot; class=&quot;gmail_quote&quot;&gt;Hi,&lt;br&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;On Fri, Dec 4, 2009 at 9:44 AM, lusitano &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644144&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helder.deazevedo@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hello,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I&amp;#39;d like to get the URL before processing UrlRewrite. Can someone help&lt;br&gt;
&amp;gt; me?&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;I&amp;#39;m assuming that in your code, you want to find out what the original&lt;br&gt;URL was that your client used when hitting the filter. There is,&lt;br&gt;perhaps, a bog standard way of doing this that I&amp;#39;m not seeing. One&lt;br&gt;
approach that comes to mind, though, is to set it as an attribute of&lt;br&gt;the URL.&lt;br&gt;&lt;br&gt;So you have a rule, way on top of your urlrewrite.xml where you call:&lt;br&gt;&amp;lt;rule&amp;gt;&lt;br&gt;&amp;lt;from&amp;gt;.*&amp;lt;/from&amp;gt;&lt;br&gt;&amp;lt;set name=&amp;quot;local.test.originalurl&amp;quot;&amp;gt;%{request-url}&amp;lt;/set&amp;gt;&lt;br&gt;
&amp;lt;/rule&amp;gt;&lt;br&gt;&lt;br&gt;Then in your code, if you can get a request object:&lt;br&gt;String originalUrl = (String)request.getAttribute(&amp;quot;local.test.originalurl&amp;quot;);&lt;br&gt;&lt;br&gt;Something like that, anyway. This would require some tweaking. I&amp;#39;m not&lt;br&gt;
even sure if the rule is legal as is.&lt;br&gt;&lt;br&gt;regards,&lt;br&gt;Wim&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;--&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644144&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644144&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;UrlRewrite&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644144&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644144&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Get-the-URL-of-the-browser-tp26639384p26644144.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26641512</id>
	<title>[bug?] UrlRewrite not working well with cometd / Bayeux continuation</title>
	<published>2009-12-04T03:54:02Z</published>
	<updated>2009-12-04T03:54:02Z</updated>
	<author>
		<name>Hendy Irawan</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;It seems that UrlRewrite interferes with filters using continuation or
&lt;br&gt;perhaps with NIO.
&lt;br&gt;&lt;br&gt;I'm trying to use cometd servlet, that requires ContinuationFilter
&lt;br&gt;under Tomcat 6.0.20. With urlrewrite filter enabled, it sometimes give
&lt;br&gt;errors. Disabling urlrewrite filter (or using it for different url-
&lt;br&gt;pattern) solves the problem.
&lt;br&gt;&lt;br&gt;I also had other filter, Spring Security, but it doesn't seem to
&lt;br&gt;interfere.
&lt;br&gt;&lt;br&gt;Original thread in cometd-users mailing list is:
&lt;br&gt;&lt;a href=&quot;http://groups.google.com/group/cometd-users/browse_thread/thread/b2e749f47bbe360b&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cometd-users/browse_thread/thread/b2e749f47bbe360b&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641512&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641512&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug---UrlRewrite-not-working-well-with-cometd---Bayeux-continuation-tp26641512p26641512.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26639976</id>
	<title>Re: [Patch] Additional requested session id conditions</title>
	<published>2009-12-04T01:38:39Z</published>
	<updated>2009-12-04T01:38:39Z</updated>
	<author>
		<name>Avlesh Singh</name>
	</author>
	<content type="html">&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;This looks quite useful. I&amp;#39;m not an uwf developer but I think patches&lt;br&gt;
are usually tracked through the google code site&lt;br&gt;
(&lt;a href=&quot;http://urlrewritefilter.googlecode.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://urlrewritefilter.googlecode.com&lt;/a&gt;). Perhaps you could also&lt;br&gt;
create an Issue/enhancement there?&lt;br&gt;&lt;/blockquote&gt;Yes, you are right. This is the only way for patches to make their way into the code base.&lt;br&gt;&lt;br&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;
On a sidenote, are any of these patches going to make it into a&lt;br&gt;
release at some point? I think Avlesh is currently the only active&lt;br&gt;
developer of the project?&lt;br&gt;&lt;/blockquote&gt;Yes, all patches which are accepted, reviewed and applied will make their way into the next release. The next release is not planned. As soon as some major bug fixes or enhancements happen, next release would be scheduled.&lt;br&gt;
&lt;br&gt;Cheers&lt;br&gt;Avlesh&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 4, 2009 at 2:18 PM, Wim De Smet &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639976&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kromagg@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi David,&lt;br&gt;
&lt;br&gt;
On Thu, Dec 3, 2009 at 8:28 AM, David Erickson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639976&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;halcyon1981@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi everyone,&lt;br&gt;
&amp;gt; Firstly thanks for developing such a useful filter, it has saved us a&lt;br&gt;
&amp;gt; lot of hassle. Second, I have included a patch with tests and&lt;br&gt;
&amp;gt; documentation that adds the following condition checks:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -requested-session-id-from-cookie&lt;br&gt;
&amp;gt; -requested-session-id-from-url&lt;br&gt;
&amp;gt; -requested-session-id-valid&lt;br&gt;
&lt;br&gt;
This looks quite useful. I&amp;#39;m not an uwf developer but I think patches&lt;br&gt;
are usually tracked through the google code site&lt;br&gt;
(&lt;a href=&quot;http://urlrewritefilter.googlecode.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://urlrewritefilter.googlecode.com&lt;/a&gt;). Perhaps you could also&lt;br&gt;
create an Issue/enhancement there?&lt;br&gt;
&lt;br&gt;
On a sidenote, are any of these patches going to make it into a&lt;br&gt;
release at some point? I think Avlesh is currently the only active&lt;br&gt;
developer of the project?&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
regards,&lt;br&gt;
Wim&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639976&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639976&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;UrlRewrite&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639976&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639976&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--Additional-requested-session-id-conditions-tp26622695p26639976.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26639575</id>
	<title>Re: Get the URL of the browser</title>
	<published>2009-12-04T01:02:57Z</published>
	<updated>2009-12-04T01:02:57Z</updated>
	<author>
		<name>Wim De Smet</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On Fri, Dec 4, 2009 at 9:44 AM, lusitano &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639575&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helder.deazevedo@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'd like to get the URL before processing UrlRewrite. Can someone help
&lt;br&gt;&amp;gt; me?
&lt;br&gt;&lt;br&gt;I'm assuming that in your code, you want to find out what the original
&lt;br&gt;URL was that your client used when hitting the filter. There is,
&lt;br&gt;perhaps, a bog standard way of doing this that I'm not seeing. One
&lt;br&gt;approach that comes to mind, though, is to set it as an attribute of
&lt;br&gt;the URL.
&lt;br&gt;&lt;br&gt;So you have a rule, way on top of your urlrewrite.xml where you call:
&lt;br&gt;&amp;lt;rule&amp;gt;
&lt;br&gt;&amp;lt;from&amp;gt;.*&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;lt;set name=&amp;quot;local.test.originalurl&amp;quot;&amp;gt;%{request-url}&amp;lt;/set&amp;gt;
&lt;br&gt;&amp;lt;/rule&amp;gt;
&lt;br&gt;&lt;br&gt;Then in your code, if you can get a request object:
&lt;br&gt;String originalUrl = (String)request.getAttribute(&amp;quot;local.test.originalurl&amp;quot;);
&lt;br&gt;&lt;br&gt;Something like that, anyway. This would require some tweaking. I'm not
&lt;br&gt;even sure if the rule is legal as is.
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Wim
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639575&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639575&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Get-the-URL-of-the-browser-tp26639384p26639575.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26639410</id>
	<title>Re: [Patch] Additional requested session id conditions</title>
	<published>2009-12-04T00:48:08Z</published>
	<updated>2009-12-04T00:48:08Z</updated>
	<author>
		<name>Wim De Smet</name>
	</author>
	<content type="html">Hi David,
&lt;br&gt;&lt;br&gt;On Thu, Dec 3, 2009 at 8:28 AM, David Erickson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639410&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;halcyon1981@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi everyone,
&lt;br&gt;&amp;gt; Firstly thanks for developing such a useful filter, it has saved us a
&lt;br&gt;&amp;gt; lot of hassle. Second, I have included a patch with tests and
&lt;br&gt;&amp;gt; documentation that adds the following condition checks:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -requested-session-id-from-cookie
&lt;br&gt;&amp;gt; -requested-session-id-from-url
&lt;br&gt;&amp;gt; -requested-session-id-valid
&lt;br&gt;&lt;br&gt;This looks quite useful. I'm not an uwf developer but I think patches
&lt;br&gt;are usually tracked through the google code site
&lt;br&gt;(&lt;a href=&quot;http://urlrewritefilter.googlecode.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://urlrewritefilter.googlecode.com&lt;/a&gt;). Perhaps you could also
&lt;br&gt;create an Issue/enhancement there?
&lt;br&gt;&lt;br&gt;On a sidenote, are any of these patches going to make it into a
&lt;br&gt;release at some point? I think Avlesh is currently the only active
&lt;br&gt;developer of the project?
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Wim
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639410&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639410&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--Additional-requested-session-id-conditions-tp26622695p26639410.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26639384</id>
	<title>Get the URL of the browser</title>
	<published>2009-12-04T00:44:05Z</published>
	<updated>2009-12-04T00:44:05Z</updated>
	<author>
		<name>lusitano</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I'd like to get the URL before processing UrlRewrite. Can someone help
&lt;br&gt;me?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639384&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639384&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Get-the-URL-of-the-browser-tp26639384p26639384.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26635774</id>
	<title>Re: Plus sign getting replaced by spaces while permanent-redirect !!!</title>
	<published>2009-12-03T21:57:52Z</published>
	<updated>2009-12-03T21:57:52Z</updated>
	<author>
		<name>WILLIAMer</name>
	</author>
	<content type="html">Is there anybody solve question?
&lt;br&gt;I got the same problem that plus sign became space.
&lt;br&gt;So, i cant get the complete value from request.
&lt;br&gt;Because the plus sign replaced by space.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Plus-sign-getting-replaced-by-spaces-while-permanent-redirect-%21%21%21-tp20083333p26635774.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26630153</id>
	<title>outbound-rule in struts2 app</title>
	<published>2009-12-03T09:48:54Z</published>
	<updated>2009-12-03T09:48:54Z</updated>
	<author>
		<name>NextOne</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am using urlrewrite in struts 2 app, some rules are working and some
&lt;br&gt;are not
&lt;br&gt;&lt;br&gt;now I am facing a new problem
&lt;br&gt;&lt;br&gt;I have the following rule which works for one parameter, but it's not
&lt;br&gt;working when I change the rule to get 2 parameters
&lt;br&gt;&lt;br&gt;&amp;lt;outbound-rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;^/page_view\.action\?id=([0-9]+)$&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;to&amp;gt;/page/$1.htm&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/outbound-rule&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;above rule works which getting one parameter but below rule is not
&lt;br&gt;working for two paramenters
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;outbound-rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;^/page_search\.action\?id=(.*)&amp;amp;city=(.*)$&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;to&amp;gt;/page/$1/$2&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/outbound-rule&amp;gt;
&lt;br&gt;&lt;br&gt;here is the struts tags
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;s:url id=&amp;quot;namesurl&amp;quot; action=&amp;quot;page_search&amp;quot; &amp;gt;
&lt;br&gt;&amp;lt;s:param name=&amp;quot;city&amp;quot; value=&amp;quot;%{city}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;s:param name=&amp;quot;id&amp;quot; value=&amp;quot;%{id}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/s:url&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;s:a href=&amp;quot;%{namesurl}&amp;quot; &amp;gt;name link&amp;lt;/s:a&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;can you please help me resolve this issue thanks
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630153&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630153&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/outbound-rule-in-struts2-app-tp26630153p26630153.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26622695</id>
	<title>[Patch] Additional requested session id conditions</title>
	<published>2009-12-02T23:28:52Z</published>
	<updated>2009-12-02T23:28:52Z</updated>
	<author>
		<name>David Erickson-5</name>
	</author>
	<content type="html">Hi everyone,
&lt;br&gt;Firstly thanks for developing such a useful filter, it has saved us a
&lt;br&gt;lot of hassle. Second, I have included a patch with tests and
&lt;br&gt;documentation that adds the following condition checks:
&lt;br&gt;&lt;br&gt;-requested-session-id-from-cookie
&lt;br&gt;-requested-session-id-from-url
&lt;br&gt;-requested-session-id-valid
&lt;br&gt;&lt;br&gt;They check the corresponding methods on the request object. Our use
&lt;br&gt;case is that Google has indexed URLs on our website containing
&lt;br&gt;jsessionid, we would like to get rid of them immediately, thus we need
&lt;br&gt;their indexer to try and crawl them, and be permanently redirected to
&lt;br&gt;the corresponding URL without jsessionid in it. The problem is that
&lt;br&gt;Tomcat 5.5 hides the jsessionid from the getRequestURI and
&lt;br&gt;getRequestURL methods on the request object, thus we cannot detect its
&lt;br&gt;presence via a simple regex. &amp;nbsp;Thus the only way to detect jsessionid
&lt;br&gt;in the URL is to check if isRequestedSessionIdFromCookie is true, then
&lt;br&gt;do a permanent redirect to the presented URL, which will automatically
&lt;br&gt;clear jsessionid because Tomcat hid it from us. &amp;nbsp;An example is
&lt;br&gt;provided in the documentation.
&lt;br&gt;&lt;br&gt;Hope this is useful to others!
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;David Erickson
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622695&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622695&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;requestedSessionIdConditions.patch&lt;/strong&gt; (16K) &lt;a href=&quot;http://old.nabble.com/attachment/26622695/0/requestedSessionIdConditions.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--Additional-requested-session-id-conditions-tp26622695p26622695.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26621784</id>
	<title>Re: Facing problem with UrlReWrite when using query string parameter  with question mark</title>
	<published>2009-12-02T14:16:30Z</published>
	<updated>2009-12-02T14:16:30Z</updated>
	<author>
		<name>NextOne</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;did anyone figure out why it's not working with struts?
&lt;br&gt;&lt;br&gt;I have a application created with struts 2 using tiles.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;^/test1\.html$&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;to type=&amp;quot;redirect&amp;quot;&amp;gt;/test2.html&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/rule&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;the abouve rule works from the ROOT dir of the app
&lt;br&gt;&amp;lt;a href=&amp;quot;&amp;lt;s:url action=&amp;quot;test1.html&amp;quot; /&amp;gt;&amp;quot; &amp;gt; test&amp;lt;/a&amp;gt;
&lt;br&gt;&lt;br&gt;but it tails with .action
&lt;br&gt;&lt;br&gt;I have a rule which redirect the &amp;nbsp;&lt;a href=&quot;http://www.../page/23432&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.../page/23432&lt;/a&gt;&amp;nbsp; link to
&lt;br&gt;&lt;a href=&quot;http://www.../page_view.action?id=23432&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.../page_view.action?id=23432&lt;/a&gt;&lt;br&gt;&lt;br&gt;but I don't want the redirect, if I remove the redirect in &amp;lt;to&amp;gt; then I
&lt;br&gt;am getting &amp;quot;HTTP Status 404 -&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;here is the rule:
&lt;br&gt;&amp;nbsp;&amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;/page/([0-9]+)$&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;to type=&amp;quot;redirect&amp;quot;&amp;gt;%{context-path}/page_view.action?id=$1&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/rule&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;did anyone got this urlrewrite workign with struts???
&lt;br&gt;&lt;br&gt;&lt;br&gt;Please share you thoughts
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;&lt;br&gt;On Nov 13, 6:28 am, Rohit &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26621784&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rohit.sam...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Wim,
&lt;br&gt;&amp;gt; Solution provided by you is not working, if you can get me some more
&lt;br&gt;&amp;gt; information or some piratical solution then it would be great for me.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards.
&lt;br&gt;&amp;gt; Rohit
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 13, 3:35 pm, Wim De Smet &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26621784&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;krom...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Him
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Fri, Nov 13, 2009 at 8:51 AM, jayantS &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26621784&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sukhad...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;lt;a href=&amp;quot;world.jsp?country=usa&amp;amp;city=nyc&amp;quot;&amp;gt;Click Here&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;lt;outbound-rule&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;        &amp;lt;from&amp;gt;^/world.jsp\.?country=([a-z]+)&amp;amp;city=([a-z]+)$&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;        &amp;lt;to&amp;gt;/world/$1/$2&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;lt;/outbound-rule&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I find it strange that this would work for the general case as you're
&lt;br&gt;&amp;gt; &amp;gt; using just &amp;quot;a&amp;quot; which I thought doesn't call encodeURL?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; But anyway, there is a problem with ampersands in outbound URLs I've
&lt;br&gt;&amp;gt; &amp;gt; noticed in that they're sometimes encoded and sometimes not (in our
&lt;br&gt;&amp;gt; &amp;gt; code base it's something to do with thestrutstag, e.g. s:a seemingly
&lt;br&gt;&amp;gt; &amp;gt; sometimes encoding before uwf gets the URL, sometimes not).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; So what you think your outbound rule sees is:
&lt;br&gt;&amp;gt; &amp;gt; /world.jsp?country=us&amp;city=dc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; What it might be seeing (verbatim):
&lt;br&gt;&amp;gt; &amp;gt; /world.jsp?country=us&amp;amp;city=dc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I would try the following rule:
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;from&amp;gt;^/world.jsp\.?country=([a-z]+)&amp;amp;(?:amp;)?city=([a-z]+)$&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Which would work for either case. Assuming your &amp;lt;a&amp;gt; tags are calling
&lt;br&gt;&amp;gt; &amp;gt; response.encodeURL() which I'm unconvinced they are. It looks like
&lt;br&gt;&amp;gt; &amp;gt; you're usingStruts1 in which case you might want to try using the
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;html:link&amp;gt; tag[1] instead.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; greets,
&lt;br&gt;&amp;gt; &amp;gt; Wim
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [1]:&lt;a href=&quot;http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#html:...-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#html:...-&lt;/a&gt;&amp;nbsp;Hide quoted text -
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Show quoted text -
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26621784&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26621784&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Facing-problem-with-UrlReWrite-when-using-query-string-parameter-with--question-mark-tp26331643p26621784.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26613954</id>
	<title>IllegalStateException help</title>
	<published>2009-12-02T10:30:14Z</published>
	<updated>2009-12-02T10:30:14Z</updated>
	<author>
		<name>grotto-4</name>
	</author>
	<content type="html">I am using UrlRewite 3.2.0 to invoke a servlet which forwards to a
&lt;br&gt;page based on the url. My code works okay and I get the desired
&lt;br&gt;result, but an IllegalStateException gets logged to Tomcat.
&lt;br&gt;&lt;br&gt;I have tried catching the exception in the servlet and in the jsp page
&lt;br&gt;but the exception is comes after the jsp and servlet are processed.
&lt;br&gt;&lt;br&gt;Is there anyway to catch this exception in UrlRewrite or stop tomcat
&lt;br&gt;logging these exceptions because my logs are now full of them.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613954&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613954&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IllegalStateException-help-tp26613954p26613954.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26559318</id>
	<title>Re: Please add ServletPath to &lt;condition&gt;</title>
	<published>2009-11-28T20:37:44Z</published>
	<updated>2009-11-28T20:37:44Z</updated>
	<author>
		<name>Avlesh Singh</name>
	</author>
	<content type="html">&lt;div&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;I&amp;#39;m having a hard time creating exclude conditions for a rule. Please add getServletPath() as one of the condition types.&lt;br&gt;
&lt;/blockquote&gt;Servlet path can be added but I am not too sure how much of help it would be for struts-like MVC implementations which are based on front controller design pattern; getServletPath in such cases would always return a single value.&lt;br&gt;
If you have a specific scenario, you might want to post the problem here. Maybe there is an alternative solution.&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;
Also, is it possible to check for existence of file in the requested URI ? i.e. like mod_rewrite&amp;#39;s -f , -e, -d, etc ?&lt;br&gt;&lt;/blockquote&gt;There&amp;#39;s already a ticket to support -f, -d flags in mod_rewrite. The issue is here - &lt;a href=&quot;http://code.google.com/p/urlrewritefilter/issues/detail?id=49&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/urlrewritefilter/issues/detail?id=49&lt;/a&gt;. Interested in writing a patch?&lt;br&gt;
&lt;br&gt;Cheers&lt;br&gt;Avlesh&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 28, 2009 at 4:52 PM, Hendy Irawan &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559318&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hendy@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi!&lt;br&gt;
&lt;br&gt;
Thank you for developing UrlRewrite.&lt;br&gt;
&lt;br&gt;
I&amp;#39;m having a hard time creating exclude conditions for a rule. Please&lt;br&gt;
add getServletPath() as one of the condition types.&lt;br&gt;
&lt;br&gt;
Also, is it possible to check for existence of file in the requested&lt;br&gt;
URI ? i.e. like mod_rewrite&amp;#39;s -f , -e, -d, etc ?&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
Hendy&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559318&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559318&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;UrlRewrite&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559318&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559318&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Please-add-ServletPath-to-%3Ccondition%3E-tp26557342p26559318.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26560320</id>
	<title>Urlrewrite and Railo</title>
	<published>2009-11-28T14:30:37Z</published>
	<updated>2009-11-28T14:30:37Z</updated>
	<author>
		<name>Peter Smith-71</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I suspect this is a very silly question, but I'm having trouble
&lt;br&gt;setting up urlrewritefilter in a Railo/Tomcat/Apache environment.
&lt;br&gt;&lt;br&gt;/var/www/mydomain.com/WEB-INF contains flex and railo subdirectories,
&lt;br&gt;but no web.inf. According to the urlrewritefilter docs, I should be
&lt;br&gt;putting urlrewrite.xml and urlrewritefilter's lib/ in WEB-INF, then
&lt;br&gt;modifying web.xml.
&lt;br&gt;&lt;br&gt;I've tried various setups, including adding the filter to railo/railo-
&lt;br&gt;web.xml.cfm (instead of web.xml). Either the filter isn't picked up,
&lt;br&gt;or Tomcat bombs with:
&lt;br&gt;&lt;br&gt;java.lang.StringIndexOutOfBoundsException: String index out of range:
&lt;br&gt;-1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.String.substring(String.java:1937)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; railo.Version.init(Version.java:48)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; railo.Version.getIntVersion(Version.java:21)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; railo.loader.engine.CFMLEngineFactory.initEngine
&lt;br&gt;(CFMLEngineFactory.java:176)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; railo.loader.engine.CFMLEngineFactory.getEngine
&lt;br&gt;(CFMLEngineFactory.java:170)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; railo.loader.engine.CFMLEngineFactory.getInstance
&lt;br&gt;(CFMLEngineFactory.java:71)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; railo.loader.engine.CFMLEngineFactory.getInstance
&lt;br&gt;(CFMLEngineFactory.java:110)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; railo.loader.servlet.CFMLServlet.init(CFMLServlet.java:26)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.catalina.valves.ErrorReportValve.invoke
&lt;br&gt;(ErrorReportValve.java:102)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.catalina.connector.CoyoteAdapter.service
&lt;br&gt;(CoyoteAdapter.java:286)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.jk.server.JkCoyoteHandler.invoke
&lt;br&gt;(JkCoyoteHandler.java:190)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
&lt;br&gt;283)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:
&lt;br&gt;767)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.jk.common.ChannelSocket.processConnection
&lt;br&gt;(ChannelSocket.java:697)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.jk.common.ChannelSocket$SocketConnection.runIt
&lt;br&gt;(ChannelSocket.java:889)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
&lt;br&gt;(ThreadPool.java:690)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&lt;br&gt;Can anyone clarify please where urlrewritefilter should go in a Railo/
&lt;br&gt;Tomcat setup please?
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26560320&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26560320&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Urlrewrite-and-Railo-tp26560320p26560320.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26557343</id>
	<title>Re: Vanity URL help</title>
	<published>2009-11-28T10:36:56Z</published>
	<updated>2009-11-28T10:36:56Z</updated>
	<author>
		<name>grotto-4</name>
	</author>
	<content type="html">After spending a whole day working on this, I now have what I want.
&lt;br&gt;&lt;br&gt;I am using urlrewrite to call a servlet on the rule &amp;quot;/(\w+)$&amp;quot; which
&lt;br&gt;checks if the url is a membername and if it is it forwards to the
&lt;br&gt;member.jsp?id= leaving the orginal membername url displayed.
&lt;br&gt;&lt;br&gt;I tried to use a filter but tomcat url-pattern is limited and the
&lt;br&gt;filter was getting invoked on everything so it was not very efficient.
&lt;br&gt;The servlet is only called on /something
&lt;br&gt;&lt;br&gt;It was pretty simple in the end but just took lots of trial and error
&lt;br&gt;to get it to work.
&lt;br&gt;&lt;br&gt;Thanks for your suggestions and help.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26557343&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26557343&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Vanity-URL-help-tp26532721p26557343.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26557342</id>
	<title>Please add ServletPath to &lt;condition&gt;</title>
	<published>2009-11-28T03:22:52Z</published>
	<updated>2009-11-28T03:22:52Z</updated>
	<author>
		<name>Hendy Irawan</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Thank you for developing UrlRewrite.
&lt;br&gt;&lt;br&gt;I'm having a hard time creating exclude conditions for a rule. Please
&lt;br&gt;add getServletPath() as one of the condition types.
&lt;br&gt;&lt;br&gt;Also, is it possible to check for existence of file in the requested
&lt;br&gt;URI ? i.e. like mod_rewrite's -f , -e, -d, etc ?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;Hendy
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26557342&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26557342&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Please-add-ServletPath-to-%3Ccondition%3E-tp26557342p26557342.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26547378</id>
	<title>Multiple rules for one link</title>
	<published>2009-11-27T12:24:13Z</published>
	<updated>2009-11-27T12:24:13Z</updated>
	<author>
		<name>Danjojo</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;^/store/([^/]+)/affil.asp&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;to type=&amp;quot;redirect&amp;quot;&amp;gt;/webstore/store/$1/home.do?
&lt;br&gt;promoCode=BWRAFFILWEBMACSS&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;from&amp;gt;^/store/{[^/]+}/affil.asp?target=([^/]+)&amp;amp;s=([^/]+)&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;to type=&amp;quot;redirect&amp;quot;&amp;gt;/webstore/store/$1/home.do?sourceCode=
&lt;br&gt;$2&amp;amp;promoCode=$3&amp;lt;/to&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/rule&amp;gt;
&lt;br&gt;&lt;br&gt;Why does the bottom rule when I uncomment it, make the top rule stop
&lt;br&gt;working?
&lt;br&gt;&lt;br&gt;Any help is appreciated!!
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26547378&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26547378&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multiple-rules-for-one-link-tp26547378p26547378.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539571</id>
	<title>Re: Vanity URL help</title>
	<published>2009-11-27T01:03:51Z</published>
	<updated>2009-11-27T01:03:51Z</updated>
	<author>
		<name>Wim De Smet</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 9:19 AM, grotto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539571&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webmaster@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am trying to use UrlRewite to create vanity URL's - e.g., someone
&lt;br&gt;&amp;gt; types &lt;a href=&quot;http://example.com/membername&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/membername&lt;/a&gt;&amp;nbsp;and the members profile is
&lt;br&gt;&amp;gt; displayed with the above url rather than &lt;a href=&quot;http://example.com/member.jsp?id=3888&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/member.jsp?id=3888&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can hard code this in the xml file but with 1000's of members I need
&lt;br&gt;&amp;gt; something that does this automatically.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Currently &lt;a href=&quot;http://example.com/membername&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/membername&lt;/a&gt;&amp;nbsp;genrates a 404 and in the
&lt;br&gt;&amp;gt; 404.jsp I check if it is a valid membername and then redirect to
&lt;br&gt;&amp;gt; member.jsp?id=3888 so the profile is displayed, but I want the
&lt;br&gt;&amp;gt; membername displayed in the url.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How do I go about this?
&lt;/div&gt;&lt;br&gt;It's usually better not to throw everything in a flat namespace. Why
&lt;br&gt;not go for a full REST resource/identifier style? IOW, your member
&lt;br&gt;URLs would be:
&lt;br&gt;/member(s)/3888
&lt;br&gt;&lt;br&gt;You can support /members/3888/someuser if you want to. Or just
&lt;br&gt;/members/someuser if &amp;quot;someuser&amp;quot; is guaranteed to be unique.
&lt;br&gt;&lt;br&gt;It all maps easily to an internal URL because you can just grab the ID
&lt;br&gt;and you know what you are supposed to be displaying. If you really
&lt;br&gt;want to be able to display on username I'd propose putting it in a
&lt;br&gt;separate namespace as well. It could be as simple as /members/username
&lt;br&gt;and just dealing with user name -&amp;gt; ID resolving in your web framework.
&lt;br&gt;Because it says /members/ there you know where it is going and you
&lt;br&gt;don't have to deal with things not getting hit by your code.
&lt;br&gt;&lt;br&gt;&amp;gt; Do I need to call a servlet? Obviously I don't want to be checking for
&lt;br&gt;&amp;gt; membernames on valid url's. So it needs to be something like this: if
&lt;br&gt;&amp;gt; url is not a valid jsp or directory, check if it is a membername and
&lt;br&gt;&amp;gt; then redirect but leave the membername as the url, if not a membername
&lt;br&gt;&amp;gt; show 404 page.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyhelp with exmaples would be much appreciate.
&lt;br&gt;&lt;br&gt;One of the problems here is that determining whether a JSP exists or
&lt;br&gt;not is at the very end of the chain. So you'd have to wait for the
&lt;br&gt;default servlet to fire and then check whether it's returning a 404.
&lt;br&gt;Possibly you could do all you want to in a filter, but I'm not sure if
&lt;br&gt;there is really a way to return back down the stack with a request
&lt;br&gt;once it's failed. Frankly, I don't think what you're trying to do maps
&lt;br&gt;very well unto the web app model, though there is most likely a way to
&lt;br&gt;make it work (I am not an expert by any measure :) ).
&lt;br&gt;&lt;br&gt;In any case, uwf is a very thin and comparatively dumb layer on top of
&lt;br&gt;all this. It is generally the first thing that gets hit when a request
&lt;br&gt;comes in. At this point, you have no idea whether you will be able to
&lt;br&gt;serve this request or not. But you can redirect stuff. Typically, what
&lt;br&gt;this would look like were I to implement it, would be something like
&lt;br&gt;this rule:
&lt;br&gt;&amp;lt;rule&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;from&amp;gt;^/members/(\w+)$&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;to&amp;gt;/members.jsp?id=$1&amp;lt;/to&amp;gt; &amp;lt;!-- or replace members.jsp by whatever --&amp;gt;
&lt;br&gt;&amp;lt;/rule&amp;gt;
&lt;br&gt;&lt;br&gt;And then make sure the rest is intercepting requests that come in on
&lt;br&gt;FORWARD, if you have any filters that need to process it.
&lt;br&gt;&lt;br&gt;I hope this makes the general patterns in which this is often handled
&lt;br&gt;a bit more clear.
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Wim
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539571&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539571&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Vanity-URL-help-tp26532721p26539571.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532721</id>
	<title>Vanity URL help</title>
	<published>2009-11-26T00:19:18Z</published>
	<updated>2009-11-26T00:19:18Z</updated>
	<author>
		<name>grotto-4</name>
	</author>
	<content type="html">I am trying to use UrlRewite to create vanity URL's - e.g., someone
&lt;br&gt;types &lt;a href=&quot;http://example.com/membername&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/membername&lt;/a&gt;&amp;nbsp;and the members profile is
&lt;br&gt;displayed with the above url rather than &lt;a href=&quot;http://example.com/member.jsp?id=3888&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/member.jsp?id=3888&lt;/a&gt;&lt;br&gt;&lt;br&gt;I can hard code this in the xml file but with 1000's of members I need
&lt;br&gt;something that does this automatically.
&lt;br&gt;&lt;br&gt;Currently &lt;a href=&quot;http://example.com/membername&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/membername&lt;/a&gt;&amp;nbsp;genrates a 404 and in the
&lt;br&gt;404.jsp I check if it is a valid membername and then redirect to
&lt;br&gt;member.jsp?id=3888 so the profile is displayed, but I want the
&lt;br&gt;membername displayed in the url.
&lt;br&gt;&lt;br&gt;How do I go about this?
&lt;br&gt;&lt;br&gt;Do I need to call a servlet? Obviously I don't want to be checking for
&lt;br&gt;membernames on valid url's. So it needs to be something like this: if
&lt;br&gt;url is not a valid jsp or directory, check if it is a membername and
&lt;br&gt;then redirect but leave the membername as the url, if not a membername
&lt;br&gt;show 404 page.
&lt;br&gt;&lt;br&gt;Anyhelp with exmaples would be much appreciate.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532721&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532721&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Vanity-URL-help-tp26532721p26532721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525636</id>
	<title>Re: &lt;set&gt;-value from &lt;from&gt; match?</title>
	<published>2009-11-25T23:56:33Z</published>
	<updated>2009-11-25T23:56:33Z</updated>
	<author>
		<name>Razvan C.</name>
	</author>
	<content type="html">&lt;br&gt;ok , thanks for your reply
&lt;br&gt;&lt;br&gt;i will try your tip
&lt;br&gt;&lt;br&gt;cheers
&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26525636&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26525636&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%3Cset%3E-value-from-%3Cfrom%3E-match--tp26331644p26525636.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525610</id>
	<title>Re: &lt;to&gt; element : help for &quot;forward&quot; type attribute</title>
	<published>2009-11-25T23:53:59Z</published>
	<updated>2009-11-25T23:53:59Z</updated>
	<author>
		<name>Razvan C.</name>
	</author>
	<content type="html">&lt;br&gt;Hi Avlesh
&lt;br&gt;&lt;br&gt;Thanks for your reply; i figured out
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;&lt;br&gt;Razvan C.
&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26525610&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26525610&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%3Cto%3E-element-%3A-help-for-%22forward%22-type-attribute-tp26449495p26525610.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26475694</id>
	<title>Re: Can someone help with a simple rule?</title>
	<published>2009-11-23T02:36:34Z</published>
	<updated>2009-11-23T02:36:34Z</updated>
	<author>
		<name>Daniel-390</name>
	</author>
	<content type="html">&lt;br&gt;I just had to add a slash at the beginning so it looks like:
&lt;br&gt;&lt;br&gt;&amp;lt;from&amp;gt;^/(.+).htm$&amp;lt;/from&amp;gt;
&lt;br&gt;&lt;br&gt;And then it worked so it was very close. I don't why this fixed it -
&lt;br&gt;just similar to what was there before - as I don't really know what
&lt;br&gt;I'm doing with this stuff, anyway all good now.
&lt;br&gt;&lt;br&gt;Thanks again for your help on this,
&lt;br&gt;&lt;br&gt;Daniel
&lt;br&gt;&lt;br&gt;On Nov 23, 2:07 am, Wim De Smet &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475694&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;krom...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Sun, Nov 22, 2009 at 5:40 AM, Daniel &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475694&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dan...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; I actually want to check if the last part contains a dot which would
&lt;br&gt;&amp;gt; &amp;gt; make it a file and then not redirect.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&lt;a href=&quot;http://www.mysite.com/something/more/whatever/ &quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/something/more/whatever/ &lt;/a&gt;&amp;nbsp;(should redirect)
&lt;br&gt;&amp;gt; &amp;gt;&lt;a href=&quot;http://www.mysite.com/something/more/whatever &quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/something/more/whatever &lt;/a&gt;&amp;nbsp;(should redirect)
&lt;br&gt;&amp;gt; &amp;gt;&lt;a href=&quot;http://www.mysite.com/something/more/whatever.gif(should&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/something/more/whatever.gif(should&lt;/a&gt;&amp;nbsp;NOT
&lt;br&gt;&amp;gt; &amp;gt; redirect)
&lt;br&gt;&amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; The site I am working on has thousands of 'paths' so I don't want to
&lt;br&gt;&amp;gt; &amp;gt; code them all in to the redirect.
&lt;br&gt;&amp;gt; &amp;gt; I just need it to redirect and path that doesn't have a filename on
&lt;br&gt;&amp;gt; &amp;gt; the end.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How about:
&lt;br&gt;&amp;gt; &amp;lt;from&amp;gt;^(.*/[^./]*)$&amp;lt;/from&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This will match:
&lt;br&gt;&amp;gt; - anything ending in a slash (.*/)
&lt;br&gt;&amp;gt; - anything ending in a slash with a trailing section that doesn't
&lt;br&gt;&amp;gt; contain dots or slashes [^./]
&lt;br&gt;&amp;gt; - will unfortunately also redirect if you have something like
&lt;br&gt;&amp;gt; /blah/dot.gif/ because of the trailing slash
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not entirely sure whether it's correct on sunday afternoon but it
&lt;br&gt;&amp;gt; looks sorta good to me. Might do a bit too much backtracking there but
&lt;br&gt;&amp;gt; that's hardly ever a problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; regards,
&lt;br&gt;&amp;gt; Wim
&lt;/div&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475694&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475694&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/urlrewrite?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/urlrewrite?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can-someone-help-with-a-simple-rule--tp26460368p26475694.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473049</id>
	<title>Re: Redirection from www.example.org ,www.example.net and  www.exammple.com to www.example.com</title>
	<published>2009-11-22T21:33:53Z</published>
	<updated>2009-11-22T21:33:53Z</updated>
	<author>
		<name>Avlesh Singh</name>
	</author>
	<content type="html">Quick answer - &lt;br&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;RewriteCond %{REMOTE_HOST}  ^host1.*  [OR]&lt;br&gt;RewriteCond %{REMOTE_HOST}  ^host2.*  [OR]&lt;br&gt;
RewriteCond %{REMOTE_HOST}  ^host3.*&lt;br&gt;RewriteRule ...some special stuff for any of these hosts...&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;Detailed guide -&lt;br&gt;&lt;a href=&quot;http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Cheers&lt;br&gt;Avlesh&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 23, 2009 at 10:58 AM, mahesh &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473049&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hariprasad.kanamarlapudi@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
Hi All,&lt;br&gt;
&lt;br&gt;
Can you please respond to the above one.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Mahesh.&lt;br&gt;
&lt;br&gt;
On Nov 20, 11:54 am, mahesh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473049&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hariprasad.kanamarlap...@...&lt;/a&gt;&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I want redirection &lt;a href=&quot;http://fromwww.example.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;fromwww.example.org&lt;/a&gt;,&lt;a href=&quot;http://www.example.netandwww.exammple.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.example.netandwww.exammple.com&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&amp;gt; &lt;a href=&quot;http://towww.example.comwww.example.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;towww.example.comwww.example.org&lt;/a&gt;      ---&amp;gt;&lt;a href=&quot;http://www.example.comwww.example.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.example.comwww.example.net&lt;/a&gt;      ---&amp;gt;&lt;a href=&quot;http://www.example.comwww.exammple.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.example.comwww.exammple.com&lt;/a&gt;    ---&amp;gt;&lt;a href=&quot;http://www.example.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.example.com&lt;/a&gt;&lt;br&gt;

&lt;div class=&quot;im&quot;&gt;&amp;gt;&lt;br&gt;
&amp;gt; we tried to to write the rules in the urlrewrite.xml but it didn&amp;#39;t&lt;br&gt;
&amp;gt; work because this we need to implement in the HTTP server(web server)&lt;br&gt;
&amp;gt; rather than implementing in the application server.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; so we tried to write the entries in the httpd.conf file  in IBM http&lt;br&gt;
&amp;gt; server.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; RewriteEngine on&lt;br&gt;
&lt;/div&gt;&amp;gt; RewriteRule   ^www.example.orghttp://&lt;a href=&quot;http://www.example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.example.com/&lt;/a&gt;&lt;br&gt;
&amp;gt; RewriteRule   ^www.example.nethttp://&lt;a href=&quot;http://www.example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.example.com/&lt;/a&gt;&lt;br&gt;
&amp;gt; RewriteRule   ^www.exammple.comhttp://&lt;a href=&quot;http://www.example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.example.com/&lt;/a&gt;&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&amp;gt;&lt;br&gt;
&amp;gt; but this also not to working for me.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Please let me know the suggestions.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; Mahesh.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;UrlRewrite&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473049&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite@...&lt;/a&gt; &lt;br&gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473049&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;urlrewrite+unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Redirection-from-www.example.org-%2Cwww.example.net-and--www.exammple.com-to-www.example.com-tp26439116p26473049.html" />
</entry>

</feed>
