Forum Discussion
kaviraj_Daboo_1
Nimbostratus
Jul 04, 2013HTTP-HTTPS redirection
Hello,
kaviraj_Daboo_1
Nimbostratus
Jul 05, 2013Hello,
still same effect "www.x.fr/y/z --> is redirected to https whereas it should be available in both HTTP and HTTPS. if someone goes directly to http://www.x.fr/y/z the page should load in HTTP but right now it is being redirected to HTTPS and if someone load the page in https://www.x.fr/y/z the page should load in HTTPS which is working right now. "
If i use only this part of the irule:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "test.domain.com" } {
switch -glob [string tolower [HTTP::uri]] {
"/y/z*" {
return
}
}
}
}
then its OK the page is loading in HTTP but if i add:
"/y/*" {
if { [TCP::local_port] ne "443" } { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
the page www.x.fr/y/z is redirected to HTTPS. As if the "return" is not working.
Kind regards,
Kaviraj
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