Forum Discussion
PacketHead_4009
Nimbostratus
Feb 17, 2010Simple redirect ?
Ok, this probably doesn't qualify for Adv Configuration but I couldn't find a spot where this question would fit.
How I can create a redirect so that if a user tries to go to:
...
The_Bhattman
Nimbostratus
Feb 17, 2010Hi Jcribb,
I am assuming that you have a vip for listening on port 80 and another vip listening on port 443
Based on this you could create an irule for port 80 redirect only
Which would look like the following
when HTTP_REQUEST {
HTTP::redirect "https://webmail.mysite.com/home/mail/default/"
}
This would take care of anyone going to port 80 and would be redirected correctly to https
-------------
The following example is the virtual server for port 443. Assuming this is for clients already using https but not the correct URI path you wanted
when HTTP_REQUEST {
if { ([HTTP::Host] eq "webmail.mysite.com") and ([HTTP::uri] eq "/") } {
HTTP::redirect "https://webmail.mysite.com/home/mail/default/"
}
}
I hope this helps
Bhattman
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
