Forum Discussion
Domel_163525
Nimbostratus
Sep 04, 2015Rewrite URL
Hello guys,
We have a very basic VS configured on our BIGIP which recognize a URL the HTTP request comes from and redirects the requests to the appropriate Pool members. The VS also does the SSL...
Domel_163525
Nimbostratus
Sep 09, 2015Ok, so F5 support came back to me saying this can not be accomplished by the use of Policies.
They send me a link to this iRule:
https://devcentral.f5.com/codeshare?sid=646
Which apparently works but they have advised to use Profiles instead which is much simpler.
Anyone has configured it before??
Local Traffic --> Profiles --> Services --> Rewrite
- THiSep 09, 2015
Nimbostratus
That link is to the ProxyPass iRule ;o) Depending on the application, you may need to do rewrites in the response body, too (eg. links in the HTML page content), not only redirect responses. ProxyPass iRule can do both to some extent (uses default stream profile for the page content rewriting). - Stanislas_Piro2Sep 09, 2015
Cumulonimbus
Hi, I told you to create rewrite profile 4 days ago: You can create a rewrite profile (type translation). In this rewrite, define: external URL : https://a.domainname.com/ internal URL : http://newwebservice/Custom/Uri/ - Domel_163525Sep 09, 2015
Nimbostratus
Ok so I have created the rewrite profile called test as follow: Parent Profile: rewrite Rewrite Mode: URI Translation URI Rules: Rule Type: Both Client URI: / Server URI: https://newwebservice/Custom/Uri/ And that works but still can not see the images... It works in the same way as iRule and Policy. F5 support is currently investigating.... What am I missing here...??? It also works with: Client URI: / Server URI: /Custom/Uri/ But still no images... I have also tried: Client URI: http://a.domainname.com/ Server URI: https://newwebservice/Custom/Uri/ and again that work but no images... - THiSep 09, 2015
Nimbostratus
Do you see broken images or nothing in place of the images? Maybe the image links are not translated properly. Have you checked the page with browser dev tools or any debugging tool (Fiddler etc)? Check the image links in the html code the browser sees? Are the images behind the same path (/Custom/Uri/) you are translating in the rewrite profile? Same for the .css style sheets. - Domel_163525Sep 10, 2015
Nimbostratus
Hello THi, So it looks like the images are in a different folder/location I could see in Fiddler it tries to load images from http://focalpointsvr/fp/images What should I rewrite to what to make it works as it should?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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