Forum Discussion
irule required.
hi all, an i
Need an help to get an irule.. my requirement if an user hit http://test.jobcredits.com or test.jobcredits.com in browser it should redirect it www.test.jobcredits.co. Please let me know what is the irule I should use for this or please let me know if u want more information.
thanks a lot for the help.
5 Replies
- im sure someone will just provide it, but this is really simple and in my opinion you would help yourself by writing it yourself. the elements you need are a HTTP_REQUEST event, checking the HTTP::URI and doing a HTTP::redirect. if you google on any redirect irule it will even get easier to work from that example. do yourself a favor and learn to do it.
- Michael_Jenkins
Cirrostratus
I think this may be the same question as you other question, but I agree with boneyard. Learning how to write iRules will be invaluable to you as time goes on and requirements get more complex.
- JG
Cumulonimbus
Are you aware of LTM Policy? It can do many things just as iRules do but without the requirement of programming skills. See: https://devcentral.f5.com/articles/ltm-policy for details. It may be a preferred way to iRules in many circumstances.
(BTW, I love iRules myself.)
- JG
Cumulonimbus
Here's another link: "sol15085: Overview of the Local Traffic Policies feature" ( https://support.f5.com/kb/en-us/solutions/public/15000/000/sol15085.html )
- jaikumar_f5
Noctilucent
I know this is too old thread, but it came up. I think this should be it,
when HTTP_REQUEST { if { [string tolower [HTTP::host]] ends_with "test.jobcredits.com" } { HTTP::redirect "https://www.test.jobcredits.co[HTTP::uri]" } }
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