Forum Discussion
Sunder
Nimbostratus
Aug 25, 2020How to remove from path first segment on F5
Hello I have problem to implement solution as above in topic. I have URL: https://1234.com/en-gb/cat/dog and I want from path remove first segment "en-gb" and put rest of the path to redirect ...
ucgwebmaster_95
Nimbostratus
Jul 09, 2008Good Morning,
I checked everything, but I am not getting any attempts for HTTPS. If I could get one page to work, I would be happy. I also noticed that you can not access myaccount.aspx, register.aspx, or checkout.aspx without logging in first.
when HTTP_REQUEST {
switch {[string tolower [HTTP::host][HTTP::path]]}{
"www.abc.com/login.aspx" {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"www.abc.com/myaccount.aspx" {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"www.abc.com/store/checkout.aspx" {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"www.abc.com/register.aspx" {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
}
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