Forum Discussion
Greg_33129
Nimbostratus
Jul 09, 2009Need assistance with a URL Replacement
All,
We are using 1500's with version 9 in a pair. I have taken an urgent request for the F5 to intercept a URL and take the user to a different site (while maintaining the original URL. Here is what I need to do:
When someone types this into their browser:
https://test.secure.mycompany.com/apps/bmv/irecords/
I need the irule to take them to:
http://newserver.mycompany.com:47080/apps/bmv/irecords/
1. Not sure if the trailing slash is needed, But I need to reroute to a differnt server with everything after irecords/ remaining the same.
2. It needs to show the user the original url
"https://test.secure.mycompany.com/apps/bmv/irecords/" and everything that comes after it.
I have searched the Forums and haven't found an article that addresses all of these aspects.
Kind Regards,
Greg
- hoolio
Cirrostratus
Hi Greg, - hoolio
Cirrostratus
Actually, if you only need to replace the Host header in requests and the app uses all local references (no references in response headers or payload to newserver.mycompany.com:47080, you can use a simple iRule:when HTTP_REQUEST { Rewrite host header HTTP::header replace Host "newserver.mycompany.com:47080" }
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