Apply urlrewrite for one context and not to another one of the same domain.

View: New views
2 Messages — Rating Filter:   Alert me  

Apply urlrewrite for one context and not to another one of the same domain.

by mahesh-29 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I need to apply urlrewrite for one context and not to another one of
the same domain.

www.abc.com/context
www.abc.com/context1

 Is there any condition to not to do urlrewrite for www.abc.com/context1

I don’t want do the urlrewrite when the url like..www.abc.com/
context1 , so how can I implement this in the <rule>

Please help me out.

Regards,
Mahesh.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "UrlRewrite" group.
To post to this group, send email to urlrewrite@...
To unsubscribe from this group, send email to urlrewrite+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Apply urlrewrite for one context and not to another one of the same domain.

by Avlesh Singh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, there is nothing in the filter to support your use case.
However, you can configure your filter (in web.xml) as follows to achieve the desired

<filter-mapping>
    <filter-name>UrlRewriteFilter</filter-name>
    <url-pattern>/context-to-which-the-rule-shall-be-applied/*</url-pattern>
</filter-mapping>

Requests to none of the other paths ("contexts") would pass through the filter.

Cheers
Avlesh

On Thu, Oct 1, 2009 at 8:48 PM, mahesh <hariprasad.kanamarlapudi@...> wrote:

Hi,

I need to apply urlrewrite for one context and not to another one of
the same domain.

www.abc.com/context
www.abc.com/context1

 Is there any condition to not to do urlrewrite for www.abc.com/context1

I don’t want do the urlrewrite when the url like..www.abc.com/
context1
, so how can I implement this in the <rule>

Please help me out.

Regards,
Mahesh.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "UrlRewrite" group.
To post to this group, send email to urlrewrite@...
To unsubscribe from this group, send email to urlrewrite+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en
-~----------~----~----~----~------~----~------~--~---