Forum Discussion
jeff_parten_106
Nimbostratus
Nov 27, 2006many to one uri redirect
Good day to all,
If someone could please point me in the correct direction, it would be greatly appreciated.
We have over 100 domain names all pointing to one address (e.g., sleeping...
jeff_parten_106
Nimbostratus
Nov 29, 2006I do appreciate your suggestions Aron. I was however able to get the redirect working with the iRule below. One of the problems I was having is I had two redirects attached to the same virtual server. I found by looking at the /var/log/ltm logs you can only have one per virtual server. So I combined the http to https and the many to one in one iRules. I called the iRule:
"not_https_www.disney.com" and assigned it to the Disney virtual server
when HTTP_REQUEST {
if { not ([HTTP::host] equals "www.disney.com") } {
HTTP::redirect "https://www.disney.com"
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
I do thank you again.
J.
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
