Forum Discussion
ictengineer_124
Nov 17, 2013Nimbostratus
Can you redirect https//domain.com to https://www.domain.com
Is it possible to rediect https://domain.com to https://www.domain.com?
I've searched but couldn't get any answers or suggestion.
Thanks Mark
Kevin_Stewart
Nov 17, 2013Employee
Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "domain.com" } {
HTTP::redirect "https://www.domain.com"
}
}
If you need to also preserve the URI in the request, use this instead:
HTTP::redirect "https://www.domain.com[HTTP::uri]"
- VasimJun 13, 2023Altocumulus
Some one help provide irule for below
https://routing-schedules-pre.cma-cgm.com/Default.aspx
should be redirected to https://iroute-pre.shipping-noprd.aws.cld.cma-cgm.com
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