Forum Discussion
XITO_122925
Nimbostratus
Jul 04, 2013Redirect specific url
Hallo iRule Fans
I have a problem with a iRule an hope anybody can help me.
The user logs in to the member are of the website https://website.com/Member
In the member area is a link th...
Kevin_Stewart
Employee
Jul 04, 2013On the port 443 VIP:
========================
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/en/publicsearch" } {
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
}
========================
On the port 80 VIP:
========================
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/member" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
========================
I would also add that switching between HTTP and HTTPS can cause havoc in some browsers. It may be better to just leave everything HTTPS from the member user's perspective.
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