Forum Discussion
Thomson_Thomas
Cirrus
Aug 29, 2018Redirect url to longer url
Hello need some help with an iRule redirect if possible:
we have two vips 80 and 443
80 vip has the standard https redirect irule "_sys_https_redirect"
we have a website at https://tes...
Kevin_Stewart
Employee
Aug 29, 2018The port 80 VIP's redirect rule is best as is.
Once on the port 443 VIP, you can use something like this to redirect to the correct URI:
if { [HTTP::uri] equals "/" } {
HTTP::redirect "/ecm/login/auth"
}
Keep in mind that even if the browser doesn't specify a trailing slash in the URL (ex. https://test.domain.com), the resulting HTTP::uri is still "/", so the above works for both "; and ";
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