Forum Discussion
Michael_-_Harr1
Nimbostratus
May 10, 2016Need help with IRULE for http ssl redirect
I created IRUle to redirect our Intranet site from http to https. However the application is sending redirect back to client with full URI. I configured it to redirect to our home page.
Is there...
Kevin_Stewart
Employee
May 10, 2016Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] ends_with "intranet.pen.org" } {
HTTP::redirect "https://intranet.pen.org[HTTP::uri]"
}
}
If no path is specified, [HTTP::uri] will equal "/", so it should always work.
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