Forum Discussion
Leslie_Hubertus
Ret. Employee
Hi Franky-frank-reg7 - do any of these provide the answer you need?
BIG-IP Solutions: Simple URL Redirects
Franky-frank-reg7
Mar 30, 2023Altocumulus
Unfortunately, these do not provide the information I need because again this is not just a redirect but they want to maintain the original header in the browser for an external website. Can someone please help here?
- Leslie_HubertusMar 31, 2023Ret. Employee
Franky-frank-reg7 - working on finding a solution for you, but hopefully someone from the community can provide an answer more quickly. Maybe Mohamed_Salah_ ?
- Franky-frank-reg7Apr 01, 2023Altocumulus
Leslie_Hubertus @Can someone please comment here? The request is becoming urgent as the days go by. I appreciate your time and attention. Thanks everyone in advance for your help.
- Franky-frank-reg7Apr 01, 2023Altocumulus
So I was able to find an example that does the host header rewrite:
To update the Host header value without redirecting the client to the new Host value, you can use HTTP::header replace Host “newhost.example.com”. This update will only affect the request to the pool member. The client will not see the update unless the web application uses the requested host header value to generate response headers and/or content.when HTTP_REQUEST { # Check if requested host doesn't start with www.example.com if {not ([string tolower [HTTP::host]] starts_with "www.example.com")}{ # Replace the host header value with newhost.example.com HTTP::header replace Host "newhost.example.com" } }
The difference with my scenario is the destination URL is not a pool member, it's an external website. Can someone confirm if there's a way to make this work?
?