Forum Discussion
Tom_Thunem_9204
Nimbostratus
Oct 12, 2009URL redirect when URL is lacking a domain name
Hello,
I have a situation where they want to save the user some typing. They want to redirect http://abc to http://abc.com. Haven't been able to find the syntax for this. All of my r...
Oct 12, 2009
Is this on an intranet environment where "abc" will be resolved by a name lookup? Assuming that's the case, then as long as the host IP for "abc" is configured as a virtual server on the BIG-IP, you could create an iRule like this:
when HTTP_REQUEST {
if { [HTTP::host] eq "abc" } {
HTTP::header replace "Host" "abc.com"
}
}
-Joe
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