Forum Discussion
Dharmendra_2243
Nimbostratus
Nov 09, 2010redirection but url not change on browser
Forward all http requests for http://test.abc.com/try to http://pass.xyz.com The idea here is to maintain the URL as http://test.abc.com/try on the user’s browser while the content/site served up is from http://pass.xyz.com.
Please mail me on .
- Chris_Miller
Altostratus
You can certainly rewrite the host header between LTM and the pool member, but are you trying to transparently send the user's info to whatever pass.xyz.com resolves to instead? - Dharmendra_2243
Nimbostratus
Can you please send me a iRule for this ? I will be highly thankful to you.
- naladar_65658
Altostratus
Something like this should work for you Dharmendra:when HTTP_REQUEST { if { [HTTP::header host] eq "test.abc.com" } { HTTP::header replace Host "pass.xyz.com" } }
- Dharmendra_2243
Nimbostratus
Thanks.
I will test it .
- Puneet_73909
Nimbostratus
Hi Naladar, its not working, my exact requirement is that if user type www.abc.com/aaa should redirect to www.xyz.com, latter is not in our network its some blogsite. Thanks - Chris_Miller
Altostratus
As far as I know, you won't be able to do that transparently. If you could, it would be awfully easy to get around browser security measures. - nitass
Employee
is it possible to reach the blog site via the pool of virtual server e.g. gateway pool? - hoolio
Cirrostratus
As Nitass suggests, you could still transparently proxy requests to the second site even if it's not directly on an LTM subnet. LTM would need to have a route to the site. You'd want to rewrite the host header on requests as Naladar has shown and select a pool with the server(s) for the second site configured. If you need to dynamically look up the IP address(es) for the second site, you could do this with an iRule which calls RESOLV::lookup (http://devcentral.f5.com/wiki/default.aspx/iRules/resolv__lookup). You'd probably need to SNAT the serverside connection as well. - Puneet_73909
Nimbostratus
Hi Aaron, actually second website is not in our domain, it is a public website like google.com, is it still possible to rewrite public url with our own url. In other words, users are seeing our url and they are actually accessing some public blogsite. Thanks - hoolio
Cirrostratus
Hi Puneet,
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