Forum Discussion
Redirect iRule from one HTTPS to another HTTPS
Thank you for your quick quick answer.
on point 1 what I am trying to do is mask the server name and port
on point 2 I would like to get a redirect irule from whatever the client is typing
HTTPS://yyyyyy.com/aaa or HTTP://yyyyyy.com/aaa to HTTPS://yyyyyy.com.
Do not worry about point 1 but at least get the irule for point 2
Thank you in advance
Richard
For better flow of answer, if you are posting something as a follow-up to an answer, add a "comment" instead of adding an "answer". It helps others to better understand the current status.
The server information won't be visible to the client. So, you don't really have to worry about it.
You would have to attach this iRule to the VS:443 & VS:80
when HTTP_REQUEST {
if { ([HTTP::host] eq "domain.com") and ([HTTP::uri] eq "/aaa") } {
HTTP::respond 301 Location "https://domain.com/"
}
}
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