Forum Discussion
GFort_32452
May 23, 2012Nimbostratus
Need some help writting a https redirect
I am new to the F5, two weeks ago I never seen and F5. I currently have a virtual setup with two nodes using port 443. Everthing seems to be working fine. I am trying to figure out how to shortent he URL the users has to enter. Currently they have to enter I would like to shorten with an irule if possible to where they only need to type in and it will take that and redirect them to the longer URL transparently. I looked at some iRules and they really did not make alot of sense to me right now. The resetmypasswordqa is the name of the virutal server on the F5. Any help or information is greatly appreciated.
Thanks
Gary
- Brian_69413NimbostratusYou need to create an iRule and apply it to your virtual server under the resources tab. Perhaps something like this?
when HTTP_REQUEST { if { ([HTTP::path] eq "") or ([HTTP::path] eq "/") }{ HTTP::redirect "https://resetmypasswordqa/itim/self/Login/Logon.do" } }
- GFort_32452NimbostratusFor some reason when I try to apply an iRule to the virtual server I get the following message:
- GFort_32452NimbostratusAfter I applied the profile, with the default settings, the iRule worked great. I have alot to learn. Thanks for all the help.
- GFort_32452NimbostratusAfter I applied the profile, with the default settings, the iRule worked great. I have alot to learn. Thanks for all the help.
- Kevin_Davies_40NacreousWelcome to the world of F5 Gary.
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