# URL Modification

**URL:** <https://community.f5.com/t/url-modification/7318>\
**Category:** Technical Forums\
**Tags:** dev, irules, devops, application-delivery\
**Created:** [January 18, 2008, 7:09pm UTC](https://community.f5.com/t/url-modification/7318 "2008-01-18T19:09:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dell\_Guest\_2165](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Dell\_Guest\_2165](https://community.f5.com/u/Dell_Guest_2165)\
**Post date:** [January 18, 2008, 7:09pm UTC](https://community.f5.com/t/url-modification/7318/1 "2008-01-18T19:09:59Z")

</div>

I want to be able to take a path that is in a ASP/HTML document and change it.

Here is an example path img src = images\image.jpg I want to convert this path and other img paths to img src = http:\\imagebox.domain.com\images\image.jpg. From what i understand this should be possible in 9.4 - If so how would i go about accomplishing this? Also the solution should be granular enough to change the url by site so site 1 would append http:\\imagebox.domain.com and site 2 would append http:\\imagebox.domain2.com. Any help or ideas would be greatly appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Joe\_Pruitt](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/joe_pruitt/32/8438_2.png) [@Joe\_Pruitt](https://community.f5.com/u/Joe_Pruitt)\
**Post date:** [January 21, 2008, 4:32pm UTC](https://community.f5.com/t/url-modification/7318/2 "2008-01-21T16:32:24Z")

</div>

What I’m getting from your question is that you want to do HTTP response rewriting. There are several samples on the site that modify incoming URI’s and the associated embedded URIs in the responses. Do a site search (top right corner) for “modify uri response” and you should see quite a few of them.

Also, keep in mind that the STREAM profile is there to do response string replacements and is highly optimized and preferred if you know the search and replace string and want to apply ti globally across all responses.

Hope this helps…

-Joe

---

<div class="post-metadata">

**Author:** ![Deb\_Allen\_18](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@Deb\_Allen\_18](https://community.f5.com/u/Deb_Allen_18)\
**Post date:** [January 21, 2008, 8:17pm UTC](https://community.f5.com/t/url-modification/7318/3 "2008-01-21T20:17:15Z")

</div>

(moved post to iRules v9.x forum)
