Forum Discussion
razorack_110239
Nimbostratus
16 years agoRewrite 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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects