Forum Discussion
KJ_50941
Nimbostratus
Sep 28, 2012iRule hlep
I need to redirect from http to https , also since some users have bookmark specific port for exmaple port 8050 in their browser to be redirect to https. how do I do that.
does this works...
afedden_1985
Cirrus
Sep 28, 2012Not sure if this will apply but I have used this when we know what the URI starts with and we want to redirect them to a different path on the same host, this uses a 301 redirect instead of the normal 302
when HTTP_REQUEST {
if { [string toupper [HTTP::uri]] starts_with "/PATH1/PATH2/" }{
HTTP::respond 301 Location "https://example.com/newpath1/"
}
}
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
