Forum Discussion
Ram_63318
Nimbostratus
Jun 10, 2008HTTP to HTTPS Redirection
1.) When customers goes directly to
http://vipnation.com/livenation/php/eventslist.php load balancer is not redirecting to https://vipnation.com/livenation/php/login.php
Redirect...
Deb_Allen_18
Jun 11, 2008Historic F5 Account
Hi Ram -
It looks to me like you are specifically excluding that URL in the condition for the redirect action:
if { ! ([string tolower [HTTP::uri]] starts_with "/livenation/") } {
HTTP::redirect "https://vipnation.com/livenation/php/login.php"
}
Let's try a more complete description of when you need to redirect, but I'll take a guess that you want to redirect all requests for the domain name only to the login page?
If so, try this instead:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/") } {
HTTP::redirect "https://vipnation.com/livenation/php/login.php"
}
}
If that's not it, post back with a list of what needs to be redirected & what doesn't & we can try to help further.
HTH
/d
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
