• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLRewrite by Turkey

 
Vishal Baid
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
 
jatan bhavsar
Ranch Hand
Posts: 299
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic