Forum Discussion
kevin_hendricks
Nimbostratus
Feb 06, 2009rewrite address bar in browser
Hi All,
I'm new to the world of irules and am trying to find something that will change the url in the address bar on the endusers browser.
so,, when they go to "aaa.myzone.com" I want them to see "bbb.mynewzone.com" in the address bar when the page displays.
- kevin_hendricks
Nimbostratus
sorry,,, put this in the wrong forum - Don_MacVittie_1Historic F5 AccountConveniently, that works out for you...
- In the future, if you could post these types of questions to the iRules forum, then, you'll likey get a quicker response.
when HTTP_REQUEST { switch [HTTP::host] { "aaa.myzone.com" { HTTP::redirect "http://bbb.mynewzone.com[HTTP::uri]" } } }
when HTTP_REQUEST { switch [HTTP::host] { "aaa.myzone.com" { HTTP::header replace "Host" "bbb.mynewzone.com" } } }
- kevin_hendricks
Nimbostratus
thanks you Guys are great,,, your whole team!!!! - Anytime!
- kevin_hendricks
Nimbostratus
Joe,, when I drop your 1st code into my bip I get - dennypayne
Employee
It should be [HTTP::uri] instead of [HTTP::URI] - no caps. - I "knew" that felt funny when I was typing it in. I guess I would have figured that it would be second nature to me by now. Sorry for the mixup.
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