Forum Discussion

razorack_110239's avatar
razorack_110239
Icon for Nimbostratus rankNimbostratus
Nov 10, 2009

Rewrite Question -

Ok..... I am using this iRule to replace all spaces in a URL to + signs. I needed to do this because when we place our Facebook link on our site www.sharperimage.com Facebook takes the URL and removes them from the URL and put the spaces back screwing up the URL so that the link to it on someones Facebook page is not working.

 

 

Here is the iRule:

 

 

when HTTP_REQUEST {

 

if { [regsub -all {\t} [HTTP::payload] "+" newdata] } {

 

HTTP::payload replace 0 [HTTP::payload length] $newdata

 

}

 

}

 

 

 

My question is this, how do I get this to only work if the request is from a Facebook page.

 

 

Thanks for you help in advance,

 

 

Razorack

1 Reply

  • Hi Razorack,

     

     

    Can you clarify the steps involved with the issue? You have a link on your site to a Facebook page? When a user clicks on that link it goes to a Facebook page, but Facebook is doing something incorrectly? I'm not following the scenario.

     

     

    Thanks,

     

    Aaron