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 ...
Pav_70755
Nimbostratus
Nov 02, 2010I've come across this [url=http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/afpg/2/aft/32977/aff/5/afv/topic/showtab/groupforums/Default.aspx]thread'>Click Here
and created the following:
when HTTP_REQUEST priority 100 {
set http_host [string tolower [string trim [getfield [HTTP::host] ":" 1]]]
general URI redirecting
switch $http_host { www.domain.com {
HTTP::redirect http://www.abc.com/subject
}
"support.abc.com" {
HTTP::redirect http://www.abc.com/subject }
return
}
}
} However this just re-directs as per normal and doesnt keep www.domain.com in the address bar.
any help much appreciated.
Thanks
Pav
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