Forum Discussion
Pav_70755
Nimbostratus
Oct 26, 2010HTTP Re-Direct and keep original URL in address bar
I have the following simple re-direct in place
}
elseif { [HTTP::host] == "www.domain.com }{
HTTP::redirect "http://www.abc.com/subject"
I basically want the address bar to keep ...
hoolio
Cirrostratus
Oct 26, 2010Hi Pav,
If you want to preserve the existing domain in the URI, you'd need to rewrite the host and/or URI to the new value. This is instead of the HTTP redirect which causes the browser to update the address bar.
The proxypass iRule performs this type of functionality:
http://devcentral.f5.com/wiki/default.aspx/iRules/proxypass
http://devcentral.f5.com/wiki/default.aspx/iRules/proxypassv10
If you don't need all of that functionality, you can use HTTP::header replace Host "newhost" and HTTP::uri "/newuri" to rewrite the host and URI.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
