Forum Discussion
Webredirect and URL Rewrite
So I was able to find an example that does the host header rewrite:
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?
?
Sounds like you've found your answer - thanks for sharing it. I've asked of my teammates to reply this afternoon just in case there's another way to go.
- Franky-frank-reg7Apr 03, 2023
Altocumulus
Leslie,
The solution is not working, can you see the question posted above below:
1. 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?
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?
?- Leslie_HubertusApr 03, 2023Ret. Employee
OK - apologies, the weekend didn't help response time to you Franky-frank-reg7. I've asked a teammate to take a look at your issue as soon as they can.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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