Forum Discussion
Redirect or Append URI with a new path /newpath, for a https website.
- Jun 04, 2014
You should be able to use the same iRule on your 443 virtual server as long as you apply a client SSL profile. If your servers on the back end are expecting SSL, then yes you will need to apply a server SSL profile as well. The standard serverssl profile will do in most cases unless the server is doing some kind of certificate based authentication.
this is the current one. I've tested this on a test vip on 443. It appears to work.
when HTTP_REQUEST {
if {[HTTP::host] eq "vanityname" || [HTTP::host] eq "vanityname.mycomp.com" } {
HTTP::redirect "https://exam.mycomp.com/newpath/"
}
}
- Cory_50405Jun 04, 2014
Noctilucent
Since you're redirecting away from the original host request, no path checking should be needed. This shouldn't put you in any redirect looping scenarios. - Wayne_159516Jun 04, 2014
Nimbostratus
Ah, i see. Thank you.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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