Forum Discussion

Dell_Guest_2165's avatar
Dell_Guest_2165
Historic F5 Account
Jan 18, 2008

URL Modification

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

 

2 Replies

  • 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