Forum Discussion
99Problems_4835
Nimbostratus
Jan 24, 2017v12 URL/URI Rewrite
I am in need of rewriting the url https://site1.domain.com to https://site2.sub.domain.com/widget in v12.x code. Best to use an iRule or a rewrite profile (for a non apm portal configuration)? What...
Jeremy_Church_3
Cirrus
Mar 17, 2017Fortunately in v12, an iRule is no longer needed for this type of translation. The rewrite profile is what you would use, especially if you used the proxy-pass iRule in the past.
Simply rewriting the Host header in the request and Location headers in the response will not address URLs that exist in HTML content.
Simply create a uri-translation rewrite profile and add a URL rule:
Client URL: https://site1.domain.com/
Server URL: https://site2.sub.domain.com/widget/
Notice the URLs end in a
/.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