• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

URLRewrite by Turkey

 
Ranch Hand
Posts: 42
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

I am facing problem in URL Rewrite.
I am using turkey for this.

My urlrewite.xml is looking like this :

<urlrewrite>
<outbound-rule>
<from>/control/(.*)$</from>
<to>/$1</to>
</outbound-rule>

<rule>
<from>^/w_product/~product_id=(.*)/(.*)$</from>
<to type="forward">/control/w_product/abcdefghijkl/$1</to>
</rule>

<rule>
<from>^/(.*)$</from>
<to type="forward">/control/$1</to>
</rule>
</urlrewrite>

Everything is working except if the url is looking like :

https://127.0.0.1:8444/control/w_product/~product_id=600131LIVE/~Denise_Mainquist/~PCI_DSS:__Tips_and_Trends_for_2010

Please help me guys.
Thanks in advance
 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi vishal,
try to encode the url

Regards
Jatan
 
Vishal Baid
Ranch Hand
Posts: 42
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

jatan bhavsar wrote:Hi vishal,
try to encode the url

Regards
Jatan



Jatan Can you tell me properly ? I am new to urlRewrite. I get success in some of the url. But this one for me the difficult one.
 
Vishal Baid
Ranch Hand
Posts: 42
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I change my rule like this :

<rule>
<from>^/w_product/~product_id=(.*)/~(.*)/~(.*)$</from>
<to type="forward">/control/w_product?product_id=$1</to>
</rule>

Even then it is not working.
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!