Forum Discussion

razorack_110239's avatar
razorack_110239
Icon for Nimbostratus rankNimbostratus
16 years ago

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

No RepliesBe the first to reply